mirror of
https://github.com/django/django.git
synced 2025-10-31 09:41:08 +00:00
Fixed #28621 -- Fixed crash of annotations with OuterRef.
This commit is contained in:
@@ -527,6 +527,8 @@ class ResolvedOuterRef(F):
|
||||
In this case, the reference to the outer query has been resolved because
|
||||
the inner query has been used as a subquery.
|
||||
"""
|
||||
contains_aggregate = False
|
||||
|
||||
def as_sql(self, *args, **kwargs):
|
||||
raise ValueError(
|
||||
'This queryset contains a reference to an outer query and may '
|
||||
|
||||
Reference in New Issue
Block a user