mirror of
https://github.com/django/django.git
synced 2025-08-30 15:27:40 +00:00
Fixed #32169 -- Added distinct support to JSONBAgg.
This commit is contained in:
parent
c36075ac1d
commit
18c8ced81e
4 changed files with 25 additions and 2 deletions
|
@ -114,10 +114,17 @@ General-purpose aggregation functions
|
|||
``JSONBAgg``
|
||||
------------
|
||||
|
||||
.. class:: JSONBAgg(expressions, filter=None, ordering=(), **extra)
|
||||
.. class:: JSONBAgg(expressions, distinct=False, filter=None, ordering=(), **extra)
|
||||
|
||||
Returns the input values as a ``JSON`` array.
|
||||
|
||||
.. attribute:: distinct
|
||||
|
||||
.. versionadded:: 3.2
|
||||
|
||||
An optional boolean argument that determines if array values will be
|
||||
distinct. Defaults to ``False``.
|
||||
|
||||
.. attribute:: ordering
|
||||
|
||||
.. versionadded:: 3.2
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue