Skip to content
Browse files

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.
  • Loading branch information...
1 parent 49bb72c commit c1684e3dcb2adf0fec8fd423cc73122330c268fe @akaariai akaariai committed Aug 9, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 django/db/models/sql/query.py
View
2 django/db/models/sql/query.py
@@ -1550,7 +1550,7 @@ def split_exclude(self, filter_expr, prefix, can_reuse):
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)

0 comments on commit c1684e3

Please sign in to comment.
Something went wrong with that request. Please try again.