From f9f9d703cfef64766ab5a3d7cb5d79298367f621 Mon Sep 17 00:00:00 2001 From: Russell Keith-Magee Date: Fri, 16 Jan 2009 00:02:35 +0000 Subject: [PATCH] Fixed #10042 -- YAADT (Aggregation Docs Typo). git-svn-id: http://code.djangoproject.com/svn/django/trunk@9755 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- docs/topics/db/aggregation.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/topics/db/aggregation.txt b/docs/topics/db/aggregation.txt index 41832743bc..9ee39fc081 100644 --- a/docs/topics/db/aggregation.txt +++ b/docs/topics/db/aggregation.txt @@ -165,7 +165,7 @@ The same rules apply to the ``aggregate()`` clause. If you wanted to know the lowest and highest price of any book that is available for sale in a store, you could use the aggregate:: - >>> Store.objects.aggregate(min_price=Min('books__price'), max_price=Min('books__price')) + >>> Store.objects.aggregate(min_price=Min('books__price'), max_price=Max('books__price')) Join chains can be as deep as you require. For example, to extract the age of the youngest author of any book available for sale, you could