1
0
mirror of https://github.com/django/django.git synced 2025-04-21 07:44:36 +00:00

[2.0.x] Fixed typo in docs/ref/models/expressions.txt.

Backport of 3cc08f4b2ba6fe7931cf551676fa86a4966987e4 from master
This commit is contained in:
Igor Starikov 2017-12-05 20:39:57 +07:00 committed by Tim Graham
parent 48beda6660
commit b0d809ac6c

View File

@ -749,7 +749,7 @@ to reduce repetition::
>>> from django.db.models import Avg, F, Max, Min, Window
>>> from django.db.models.functions import ExtractYear
>>> window = {
>>> 'partition': [F('studio'), F('genre')],
>>> 'partition_by': [F('studio'), F('genre')],
>>> 'order_by': ExtractYear('released').asc(),
>>> }
>>> Movie.objects.annotate(