mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Fixed #27767 -- Added distinct argument to ArrayAgg.
This commit is contained in:
@@ -22,10 +22,17 @@ General-purpose aggregation functions
|
||||
``ArrayAgg``
|
||||
------------
|
||||
|
||||
.. class:: ArrayAgg(expression, **extra)
|
||||
.. class:: ArrayAgg(expression, distinct=False, **extra)
|
||||
|
||||
Returns a list of values, including nulls, concatenated into an array.
|
||||
|
||||
.. attribute:: distinct
|
||||
|
||||
.. versionadded:: 2.0
|
||||
|
||||
An optional boolean argument that determines if array values
|
||||
will be distinct. Defaults to ``False``.
|
||||
|
||||
``BitAnd``
|
||||
----------
|
||||
|
||||
|
||||
@@ -72,7 +72,9 @@ Minor features
|
||||
:mod:`django.contrib.postgres`
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
* ...
|
||||
* The new ``distinct`` argument for
|
||||
:class:`~django.contrib.postgres.aggregates.ArrayAgg` determines if
|
||||
concatenated values will be distinct.
|
||||
|
||||
:mod:`django.contrib.redirects`
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
Reference in New Issue
Block a user