#11293: Filters on aggregates lose connector --------------------------------------------+------------------------------- Reporter: dja...@colincross.com | Owner: Status: new | Milestone: Component: ORM aggregation | Version: SVN Resolution: | Keywords: having, where, aggregate, connector Stage: Accepted | Has_patch: 1 Needs_docs: 0 | Needs_tests: 0 Needs_better_patch: 1 | --------------------------------------------+------------------------------- Comment (by anentropic):
with formatting: {{{ qs = Book.objects.values('publisher').annotate(pub_books=Count('id')) qs = qs.filter(pub_books__gt=10) | qs.filter(pages=1) }}} -- Ticket URL: <http://code.djangoproject.com/ticket/11293#comment:10> Django <http://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To post to this group, send email to django-upda...@googlegroups.com. To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-updates?hl=en.