summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorSimon Charette <charette.s@gmail.com>2019-12-21 23:22:49 -0500
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2019-12-23 09:24:37 +0100
commit7b065c41e406fb22d39d1f7b4cfed96bf06dc591 (patch)
treecb27aed8fbce0cf6d0a14c0239538e6d570144e4 /docs
parentb1a309f6f08bc27c7d843b7be493282a2b0ac8fe (diff)
[3.0.x] Fixed #31109 -- Disabled grouping by aliases on QuerySet.exists().
Clearing the SELECT clause in Query.has_results was orphaning GROUP BY references to it. Thanks Thierry Bastian for the report and Baptiste Mispelon for the bisect. Regression in fb3f034f1c63160c0ff13c609acd01c18be12f80. Backport of 720de4d0441fcfdb543051389c70efbe66ed962a from master
Diffstat (limited to 'docs')
-rw-r--r--docs/releases/3.0.2.txt3
1 files changed, 3 insertions, 0 deletions
diff --git a/docs/releases/3.0.2.txt b/docs/releases/3.0.2.txt
index 53b066838a..ccc82b18ae 100644
--- a/docs/releases/3.0.2.txt
+++ b/docs/releases/3.0.2.txt
@@ -11,3 +11,6 @@ Bugfixes
* Fixed a regression in Django 3.0 that didn't include columns referenced by a
``Subquery()`` in the ``GROUP BY`` clause (:ticket:`31094`).
+
+* Fixed a regression in Django 3.0 where ``QuerySet.exists()`` crashed if a
+ queryset contained an aggregation over a ``Subquery()`` (:ticket:`31109`).