diff --git a/docs/ref/models/expressions.txt b/docs/ref/models/expressions.txt index cdcd697b862..fcd88a58a29 100644 --- a/docs/ref/models/expressions.txt +++ b/docs/ref/models/expressions.txt @@ -743,7 +743,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(