mirror of
https://github.com/django/django.git
synced 2025-08-31 15:57:45 +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``
|
||||
----------
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue