Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
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...
commit c1684e3dcb2adf0fec8fd423cc73122330c268fe 1 parent 49bb72c
@akaariai akaariai authored
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)
Please sign in to comment.
Something went wrong with that request. Please try again.