Skip to content

Commit

Permalink
Fixed #10490 -- Small wording correction in the docs. Thanks, matehat.
Browse files Browse the repository at this point in the history
git-svn-id: http://code.djangoproject.com/svn/django/trunk@10529 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information
malcolmt committed Apr 12, 2009
1 parent 50dbda9 commit 1aa0d1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/topics/db/aggregation.txt
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ in which the clauses are applied to the ``QuerySet``.
When an ``annotate()`` clause is applied to a query, the annotation is When an ``annotate()`` clause is applied to a query, the annotation is
computed over the state of the query up to the point where the annotation computed over the state of the query up to the point where the annotation
is requested. The practical implication of this is that ``filter()`` and is requested. The practical implication of this is that ``filter()`` and
``annotate()`` are not transitive operations -- that is, there is a ``annotate()`` are not commutative operations -- that is, there is a
difference between the query:: difference between the query::


>>> Publisher.objects.annotate(num_books=Count('book')).filter(book__rating__gt=3.0) >>> Publisher.objects.annotate(num_books=Count('book')).filter(book__rating__gt=3.0)
Expand Down

0 comments on commit 1aa0d1b

Please sign in to comment.