mirror of
https://github.com/django/django.git
synced 2025-07-19 09:09:13 +00:00
[1.9.x] Fixed typo in docs/topics/db/aggregation.txt.
Backport of 8550566af6321fe111ac1fe6497720e6ac291824 from master
This commit is contained in:
parent
ccc367fd48
commit
9d0c8d3dd9
@ -294,7 +294,7 @@ file::
|
|||||||
|
|
||||||
>>> Author.objects.aggregate(average_rating=Avg('book__rating'))
|
>>> Author.objects.aggregate(average_rating=Avg('book__rating'))
|
||||||
|
|
||||||
(The resulting dictionary will have a key called ``'average__rating'``. If no
|
(The resulting dictionary will have a key called ``'average_rating'``. If no
|
||||||
such alias were specified, it would be the rather long ``'book__rating__avg'``.)
|
such alias were specified, it would be the rather long ``'book__rating__avg'``.)
|
||||||
|
|
||||||
Aggregations and other ``QuerySet`` clauses
|
Aggregations and other ``QuerySet`` clauses
|
||||||
|
Loading…
x
Reference in New Issue
Block a user