mirror of
https://github.com/django/django.git
synced 2025-10-31 09:41:08 +00:00
Refs #28621 -- Fixed crash of annotations with nested OuterRef.
This commit is contained in:
@@ -584,6 +584,8 @@ class ResolvedOuterRef(F):
|
||||
|
||||
|
||||
class OuterRef(F):
|
||||
contains_aggregate = False
|
||||
|
||||
def resolve_expression(self, *args, **kwargs):
|
||||
if isinstance(self.name, self.__class__):
|
||||
return self.name
|
||||
|
||||
Reference in New Issue
Block a user