From 7d7e5cd0554aab03d3e2732a67a2680d48fa48f7 Mon Sep 17 00:00:00 2001 From: Jacob Walls Date: Fri, 5 Sep 2025 14:15:50 -0400 Subject: Refs #35444 -- Removed contrib.postgres aggregates ordering kwarg per deprecation timeline. --- docs/ref/contrib/postgres/aggregates.txt | 15 --------------- docs/releases/6.1.txt | 6 ++++++ 2 files changed, 6 insertions(+), 15 deletions(-) (limited to 'docs') diff --git a/docs/ref/contrib/postgres/aggregates.txt b/docs/ref/contrib/postgres/aggregates.txt index 81e54547e5..d2bd48c4fd 100644 --- a/docs/ref/contrib/postgres/aggregates.txt +++ b/docs/ref/contrib/postgres/aggregates.txt @@ -54,11 +54,6 @@ General-purpose aggregation functions ArrayAgg("a_field", order_by="-some_field") ArrayAgg("a_field", order_by=F("some_field").desc()) - .. deprecated:: 5.2 - - The ``ordering`` keyword argument is deprecated. Use - :attr:`ArrayAgg.order_by` instead. - ``BitAnd`` ---------- @@ -180,11 +175,6 @@ General-purpose aggregation functions {'parking': True, 'double_bed': True} ]}]> - .. deprecated:: 5.2 - - The ``ordering`` keyword argument is deprecated. Use - :attr:`JSONBAgg.order_by` instead. - ``StringAgg`` ------------- @@ -242,11 +232,6 @@ General-purpose aggregation functions 'headline': 'NASA uses Python', 'publication_names': 'Science News, The Python Journal' }]> - .. deprecated:: 5.2 - - The ``ordering`` keyword argument is deprecated. Use - :attr:`StringAgg.order_by` instead. - Aggregate functions for statistics ================================== diff --git a/docs/releases/6.1.txt b/docs/releases/6.1.txt index c95b9b1c57..5b98cda2a6 100644 --- a/docs/releases/6.1.txt +++ b/docs/releases/6.1.txt @@ -272,3 +272,9 @@ to remove usage of these features. * Fallbacks to ``request.user`` and ``request.auser()`` when ``user`` is ``None`` in ``django.contrib.auth.login()`` and ``django.contrib.auth.alogin()``, respectively, are removed. + +* The ``ordering`` keyword parameter of the PostgreSQL specific aggregation + functions ``django.contrib.postgres.aggregates.ArrayAgg``, + ``django.contrib.postgres.aggregates.JSONBAgg``, and + ``django.contrib.postgres.aggregates.StringAgg`` are removed in favor + of the ``order_by`` parameter. -- cgit v1.3