mirror of https://github.com/django/django.git
Fixed typo in docs/ref/models/expressions.txt.
This commit is contained in:
parent
87c76aa116
commit
3cc08f4b2b
|
@ -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(
|
||||||
|
|
Loading…
Reference in New Issue