From 3cc08f4b2ba6fe7931cf551676fa86a4966987e4 Mon Sep 17 00:00:00 2001 From: Igor Starikov Date: Tue, 5 Dec 2017 20:39:57 +0700 Subject: [PATCH] Fixed typo in docs/ref/models/expressions.txt. --- docs/ref/models/expressions.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/ref/models/expressions.txt b/docs/ref/models/expressions.txt index cdcd697b86..fcd88a58a2 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(