[3.0.x] Fixed #31094 -- Included columns referenced by subqueries in GROUP BY on aggregations.

Thanks Johannes Hoppe for the report.

Regression in fb3f034f1c.

Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>

Backport of 5a4d7285bd from master
This commit is contained in:
Simon Charette 2019-12-17 01:21:13 -05:00 committed by Mariusz Felisiak
parent fb260ad777
commit fd9050589f
5 changed files with 58 additions and 18 deletions

View file

@ -9,4 +9,5 @@ Django 3.0.2 fixes several bugs in 3.0.1.
Bugfixes
========
* ...
* Fixed a regression in Django 3.0 that didn't include columns referenced by a
``Subquery()`` in the ``GROUP BY`` clause (:ticket:`31094`).