From 173edebf7f3ab3a8a999128ade8f4d8814ee565f Mon Sep 17 00:00:00 2001 From: nessita <124304+nessita@users.noreply.github.com> Date: Thu, 30 Jan 2025 14:50:47 -0300 Subject: [PATCH] [5.1.x] Corrected ArrayAgg example for ordering usage. --- docs/ref/contrib/postgres/aggregates.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/ref/contrib/postgres/aggregates.txt b/docs/ref/contrib/postgres/aggregates.txt index edaf032ffa..da5e1c2ad3 100644 --- a/docs/ref/contrib/postgres/aggregates.txt +++ b/docs/ref/contrib/postgres/aggregates.txt @@ -51,8 +51,8 @@ General-purpose aggregation functions from django.db.models import F - ArrayAgg("a_field", order_by="-some_field") - ArrayAgg("a_field", order_by=F("some_field").desc()) + ArrayAgg("a_field", ordering="-some_field") + ArrayAgg("a_field", ordering=F("some_field").desc()) .. versionchanged:: 5.0