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:
parent
48beda6660
commit
b0d809ac6c
@ -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(
|
||||
|
Loading…
x
Reference in New Issue
Block a user