sorry, forgot to include the group_by columns in the select clause: > qset.values('field', 'field2', 'field3__sum', 'f4__count', ...) < = > > SELECT field, field2, SUM(field3), count(f4) FROM some_table GROUP BY field, > field2;
--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to [EMAIL PROTECTED] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-developers?hl=en -~----------~----~----~----~------~----~------~--~---