mirror of
https://github.com/django/django.git
synced 2025-10-24 14:16:09 +00:00
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.
This commit is contained in:
committed by
Mariusz Felisiak
parent
d526d1569c
commit
1297c0d0d7
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user