It looks that API lacks support for SQL HAVING clause, this one should be distinct from filter, GROUP BY without HAVING is often useless.
Consider adding it to api (something like Model.objects.aggregate(height__sum).having(sex='M')) Also do not forget to add HAVING clause to .extra() method. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-developers@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---