summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authororf <tom@tomforb.es>2017-01-23 15:34:42 +0000
committerTim Graham <timograham@gmail.com>2017-02-04 13:57:39 -0500
commitb5393028bfc939adf14d0fa5e4088cddd3b9dfa1 (patch)
tree4168b42b77be5bce7d3b8d0acf2819098344412c /docs
parent245f20910906c8f17e1011a00f7042e1d8f39c76 (diff)
Fixed #27767 -- Added distinct argument to ArrayAgg.
Diffstat (limited to 'docs')
-rw-r--r--docs/ref/contrib/postgres/aggregates.txt9
-rw-r--r--docs/releases/2.0.txt4
2 files changed, 11 insertions, 2 deletions
diff --git a/docs/ref/contrib/postgres/aggregates.txt b/docs/ref/contrib/postgres/aggregates.txt
index 3939023e26..1c738c35ae 100644
--- a/docs/ref/contrib/postgres/aggregates.txt
+++ b/docs/ref/contrib/postgres/aggregates.txt
@@ -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``
----------
diff --git a/docs/releases/2.0.txt b/docs/releases/2.0.txt
index 4e42bd2b55..a43ae5e368 100644
--- a/docs/releases/2.0.txt
+++ b/docs/releases/2.0.txt
@@ -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`
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~