From aff79be03a8c787ba0cc7e00dcec9eeb8ad01c87 Mon Sep 17 00:00:00 2001 From: Mariusz Felisiak Date: Mon, 31 Jan 2022 11:33:24 +0100 Subject: [4.0.x] Fixed #33468 -- Fixed QuerySet.aggregate() after annotate() crash on aggregates with default. Thanks Adam Johnson for the report. Backport of 71e7c8e73712419626f1c2b6ec036e8559a2d667 from main --- docs/releases/4.0.2.txt | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'docs') diff --git a/docs/releases/4.0.2.txt b/docs/releases/4.0.2.txt index c60dc68224..e7b9879625 100644 --- a/docs/releases/4.0.2.txt +++ b/docs/releases/4.0.2.txt @@ -33,3 +33,7 @@ Bugfixes * Fixed a duplicate operation regression in Django 4.0 that caused a migration crash when altering a primary key type for a concrete parent model referenced by a foreign key (:ticket:`33462`). + +* Fixed a bug in Django 4.0 that caused a crash of ``QuerySet.aggregate()`` + after ``annotate()`` on an aggregate function with a + :ref:`default ` (:ticket:`33468`). -- cgit v1.3