From 1297c0d0d76a708017fe196b61a0ab324df76954 Mon Sep 17 00:00:00 2001 From: Simon Charette Date: Tue, 22 Nov 2022 21:49:12 -0500 Subject: Fixed #31679 -- Delayed annotating aggregations. By avoiding to annotate aggregations meant to be possibly pushed to an outer query until their references are resolved it is possible to aggregate over a query with the same alias. Even if #34176 is a convoluted case to support, this refactor seems worth it given the reduction in complexity it brings with regards to annotation removal when performing a subquery pushdown. --- docs/releases/4.2.txt | 3 +++ 1 file changed, 3 insertions(+) (limited to 'docs') diff --git a/docs/releases/4.2.txt b/docs/releases/4.2.txt index e7d2882edb..7b3ca37b35 100644 --- a/docs/releases/4.2.txt +++ b/docs/releases/4.2.txt @@ -395,6 +395,9 @@ Miscellaneous * The undocumented ``negated`` parameter of the :class:`~django.db.models.Exists` expression is removed. +* The ``is_summary`` argument of the undocumented ``Query.add_annotation()`` + method is removed. + .. _deprecated-features-4.2: Features deprecated in 4.2 -- cgit v1.3