mirror of
https://github.com/django/django.git
synced 2025-08-03 10:34:04 +00:00
Fixed #27767 -- Added distinct argument to ArrayAgg.
This commit is contained in:
parent
245f209109
commit
b5393028bf
5 changed files with 25 additions and 3 deletions
|
@ -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`
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue