Refs #25265 -- Allowed Query subclasses to build filters.
This commit is contained in:
parent
409060780c
commit
14c8504a37
|
@ -1760,7 +1760,7 @@ class Query(BaseExpression):
|
|||
)
|
||||
"""
|
||||
# Generate the inner query.
|
||||
query = Query(self.model)
|
||||
query = self.__class__(self.model)
|
||||
query._filtered_relations = self._filtered_relations
|
||||
filter_lhs, filter_rhs = filter_expr
|
||||
if isinstance(filter_rhs, OuterRef):
|
||||
|
|
Loading…
Reference in New Issue