Kaydet (Commit) b0d809ac authored tarafından Igor Starikov's avatar Igor Starikov Kaydeden (comit) Tim Graham

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

Backport of 3cc08f4b from master
üst 48beda66
...@@ -749,7 +749,7 @@ to reduce repetition:: ...@@ -749,7 +749,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(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment