mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +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:
committed by
Sarah Boyce
parent
6d1cf5375f
commit
4b977a5d72
@@ -194,6 +194,8 @@ General-purpose aggregation functions
|
||||
|
||||
.. class:: StringAgg(expression, delimiter, distinct=False, filter=None, default=None, order_by=())
|
||||
|
||||
.. deprecated:: 6.0
|
||||
|
||||
Returns the input values concatenated into a string, separated by
|
||||
the ``delimiter`` string, or ``default`` if there are no values.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user