From 86a048b4e0dd07d56fafe5d294d5e12b5277a41b Mon Sep 17 00:00:00 2001 From: Russell Keith-Magee Date: Tue, 24 Feb 2009 22:51:14 +0000 Subject: [PATCH] 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 --- docs/topics/db/aggregation.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/topics/db/aggregation.txt b/docs/topics/db/aggregation.txt index a861959e66..14579598b9 100644 --- a/docs/topics/db/aggregation.txt +++ b/docs/topics/db/aggregation.txt @@ -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::