Fixed typo in docs/ref/models/expressions.txt.

This commit is contained in:
Igor Starikov 2017-12-05 20:39:57 +07:00 committed by Tim Graham
parent 87c76aa116
commit 3cc08f4b2b
1 changed files with 1 additions and 1 deletions

View File

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