summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authornessita <124304+nessita@users.noreply.github.com>2025-01-30 14:50:47 -0300
committerGitHub <noreply@github.com>2025-01-30 14:50:47 -0300
commit173edebf7f3ab3a8a999128ade8f4d8814ee565f (patch)
treef41f9a98313ff0023c08ff1e20082dbb41eff21f /docs
parent4f0169e94f6d3afd991f386567330a5497757262 (diff)
[5.1.x] Corrected ArrayAgg example for ordering usage.
Diffstat (limited to 'docs')
-rw-r--r--docs/ref/contrib/postgres/aggregates.txt4
1 files 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