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:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user