Fixed #18731 -- Cleaned up split_exclude's use of can_reuse
The outer query's set of reusable joins (can_reuse) was passed to the inner query's add_filter call. This was incorrect.
This commit is contained in:
parent
49bb72c403
commit
c1684e3dcb
|
@ -1550,7 +1550,7 @@ class Query(object):
|
|||
N-to-many relation field.
|
||||
"""
|
||||
query = Query(self.model)
|
||||
query.add_filter(filter_expr, can_reuse=can_reuse)
|
||||
query.add_filter(filter_expr)
|
||||
query.bump_prefix()
|
||||
query.clear_ordering(True)
|
||||
query.set_start(prefix)
|
||||
|
|
Loading…
Reference in New Issue