1
0
mirror of https://github.com/django/django.git synced 2025-10-31 09:41:08 +00:00

Fixed #32007 -- Fixed queryset crash with Q() annotation and aggregation.

Thanks Gordon Wrigley for the report.

Regression in 8a6df55f2d.
This commit is contained in:
Mariusz Felisiak
2020-09-15 11:40:59 +02:00
committed by GitHub
parent 7be6a6a4d6
commit eaf9764d3b
3 changed files with 17 additions and 0 deletions

View File

@@ -159,6 +159,9 @@ class WhereNode(tree.Node):
clone.relabel_aliases(change_map)
return clone
def copy(self):
return self.clone()
@classmethod
def _contains_aggregate(cls, obj):
if isinstance(obj, tree.Node):