mirror of
https://github.com/django/django.git
synced 2025-11-25 21:22:14 +00:00
Fixed #35444 -- Added generic support for Aggregate.order_by.
This moves the behaviors of `order_by` used in Postgres aggregates into the `Aggregate` class. This allows for creating aggregate functions that support this behavior across all database engines. This is shown by moving the `StringAgg` class into the shared `aggregates` module and adding support for all databases. The Postgres `StringAgg` class is now a thin wrapper on the new shared `StringAgg` class. Thank you Simon Charette for the review.
This commit is contained in:
parent
6d1cf5375f
commit
4b977a5d72
19 changed files with 659 additions and 291 deletions
|
|
@ -18,6 +18,8 @@ details on these changes.
|
|||
* The ``serialize`` keyword argument of
|
||||
``BaseDatabaseCreation.create_test_db()`` will be removed.
|
||||
|
||||
* The ``django.contrib.postgres.aggregates.StringAgg`` class will be removed.
|
||||
|
||||
.. _deprecation-removed-in-6.1:
|
||||
|
||||
6.1
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue