diff options
| author | Tim Graham <timograham@gmail.com> | 2017-11-07 09:03:01 -0500 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2017-11-07 09:03:35 -0500 |
| commit | d9b457d906a55a7473f5727fe24cd4b0141f8b5f (patch) | |
| tree | 30f122b2bc7726f1febf03f6d394072ec5aa4a34 /docs | |
| parent | d464f6b7621774f8e9ddf97fdf2c4638b0d64ce4 (diff) | |
[1.11.x] Fixed typo in docs/topics/db/aggregation.txt.
Backport of 00b93c2b1ecdda978f067309c6feafda633a7264 from master
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/topics/db/aggregation.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/topics/db/aggregation.txt b/docs/topics/db/aggregation.txt index f47e9ac230..86a2a45417 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 |
