From 72f875541a0ad5a7d317ae1f842963c6c878ff5f Mon Sep 17 00:00:00 2001 From: Tim Graham Date: Tue, 7 Nov 2017 09:03:01 -0500 Subject: [PATCH] [2.0.x] Fixed typo in docs/topics/db/aggregation.txt. Backport of 00b93c2b1ecdda978f067309c6feafda633a7264 from master --- 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 7c5eb5791ab..c3a4aa2bec1 100644 --- a/docs/topics/db/aggregation.txt +++ b/docs/topics/db/aggregation.txt @@ -70,7 +70,7 @@ In a hurry? Here's how to do common aggregate queries, assuming the models above # Difference between the highest priced book and the average price of all books. >>> from django.db.models import FloatField >>> Book.objects.aggregate( - ... price_diff=Max('price', output_field=FloatField()) - Avg('price'))) + ... price_diff=Max('price', output_field=FloatField()) - Avg('price')) {'price_diff': 46.85} # All the following queries involve traversing the Book<->Publisher