#10045: Improve documentation of .annotate() / .filter() ordering quirks
--------------------------------------+------------------------------------
     Reporter:  alex@…                |                    Owner:
         Type:  Cleanup/optimization  |                   Status:  reopened
    Component:  Documentation         |                  Version:  SVN
     Severity:  Normal                |               Resolution:
     Keywords:                        |             Triage Stage:  Accepted
    Has patch:  0                     |      Needs documentation:  0
  Needs tests:  0                     |  Patch needs improvement:  0
Easy pickings:  0                     |                    UI/UX:  0
--------------------------------------+------------------------------------

Comment (by SmileyChris):

 (anon was me)

 In the project test, I create two `Publisher`s, and assign three `Book`s
 to the first publisher, two above a rating of `3.0`. Running
 
`Publisher.objects.annotate(num_books=Count('book')).filter(book__rating__gt=3.0)[0].num_books`
 returns **6**.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/10045#comment:6>
Django <https://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 [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-updates?hl=en.

Reply via email to