Fixed #34798 -- Fixed QuerySet.aggregate() crash when referencing expressions containing subqueries.

Regression in 59bea9efd2,
complements e5c844d6f2.

Refs #28477, #34551.

Thanks Haldun Komsuoglu for the report.
This commit is contained in:
Simon Charette 2023-10-15 21:59:15 -04:00 committed by Mariusz Felisiak
parent 73b2c63127
commit 3b4a571275
4 changed files with 32 additions and 2 deletions

View file

@ -9,4 +9,6 @@ Django 4.2.7 fixes several bugs in 4.2.6.
Bugfixes
========
...
* Fixed a regression in Django 4.2 that caused a crash of
``QuerySet.aggregate()`` with aggregates referencing expressions containing
subqueries (:ticket:`34798`).