Fixed #10344 -- Corrected some typos in the aggregation docs. Thanks to ewoudenberg for the report.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@9904 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Russell Keith-Magee 2009-02-24 22:51:14 +00:00
parent 5f9ac28856
commit 86a048b4e0
1 changed files with 2 additions and 2 deletions

View File

@ -143,7 +143,7 @@ Joins and aggregates
====================
So far, we have dealt with aggregates over fields that belong to the
model being queries. However, sometimes the value you want to aggregate
model being queried. However, sometimes the value you want to aggregate
will belong to a model that is related to the model you are querying.
When specifying the field to be aggregated in an aggregate functions,
@ -271,7 +271,7 @@ rating of books written by each author:
>>> Author.objects.annotate(average_rating=Avg('book__rating'))
This will return one result for each author in the database, annotate with
This will return one result for each author in the database, annotated with
their average book rating.
However, the result will be slightly different if you use a ``values()`` clause::