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:
Anssi Kääriäinen 2012-08-09 23:36:51 +03:00
parent 49bb72c403
commit c1684e3dcb
1 changed files with 1 additions and 1 deletions

View File

@ -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)