Ticket #10490: aggegation-typo.diff
File aggegation-typo.diff, 712 bytes (added by , 16 years ago) |
---|
-
docs/topics/db/aggregation.txt
223 223 When an ``annotate()`` clause is applied to a query, the annotation is 224 224 computed over the state of the query up to the point where the annotation 225 225 is requested. The practical implication of this is that ``filter()`` and 226 ``annotate()`` are not transitive operations -- that is, there is a226 ``annotate()`` are not commutative operations -- that is, there is a 227 227 difference between the query:: 228 228 229 229 >>> Publisher.objects.annotate(num_books=Count('book')).filter(book__rating__gt=3.0)