Ticket #10490: aggegation-typo.diff

File aggegation-typo.diff, 712 bytes (added by Tim Graham, 16 years ago)
  • docs/topics/db/aggregation.txt

     
    223223When an ``annotate()`` clause is applied to a query, the annotation is
    224224computed over the state of the query up to the point where the annotation
    225225is requested. The practical implication of this is that ``filter()`` and
    226 ``annotate()`` are not transitive operations -- that is, there is a
     226``annotate()`` are not commutative operations -- that is, there is a
    227227difference between the query::
    228228
    229229    >>> Publisher.objects.annotate(num_books=Count('book')).filter(book__rating__gt=3.0)
Back to Top