1
0
mirror of https://github.com/django/django.git synced 2025-10-31 09:41:08 +00:00

[1.11.x] Fixed typo in docs/topics/db/aggregation.txt.

Backport of 00b93c2b1e from master
This commit is contained in:
Tim Graham
2017-11-07 09:03:01 -05:00
parent d464f6b762
commit d9b457d906

View File

@@ -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