diff options
| author | Simon Charette <charettes@users.noreply.github.com> | 2019-01-09 17:52:36 -0500 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2019-01-09 17:52:36 -0500 |
| commit | bc05547cd8c1dd511c6b6a6c873a1bc63417b111 (patch) | |
| tree | 2ba1a136e77b21df2524d5558ea0a6f25d5ff03b /docs/releases/2.2.txt | |
| parent | 222caab68a2a7345043d0c50161203cb2cfe70eb (diff) | |
Fixed #28658 -- Added DISTINCT handling to the Aggregate class.
Diffstat (limited to 'docs/releases/2.2.txt')
| -rw-r--r-- | docs/releases/2.2.txt | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/docs/releases/2.2.txt b/docs/releases/2.2.txt index c8515d5ba6..150fe413db 100644 --- a/docs/releases/2.2.txt +++ b/docs/releases/2.2.txt @@ -239,6 +239,13 @@ Models * Added SQLite support for the :class:`~django.db.models.StdDev` and :class:`~django.db.models.Variance` functions. +* The handling of ``DISTINCT`` aggregation is added to the + :class:`~django.db.models.Aggregate` class. Adding :attr:`allow_distinct = + True <django.db.models.Aggregate.allow_distinct>` as a class attribute on + ``Aggregate`` subclasses allows a ``distinct`` keyword argument to be + specified on initialization to ensure that the aggregate function is only + called for each distinct value of ``expressions``. + Requests and Responses ~~~~~~~~~~~~~~~~~~~~~~ |
