diff options
| author | Anssi Kääriäinen <akaariai@gmail.com> | 2012-08-09 23:36:51 +0300 |
|---|---|---|
| committer | Anssi Kääriäinen <akaariai@gmail.com> | 2012-08-12 21:40:22 +0300 |
| commit | c1684e3dcb2adf0fec8fd423cc73122330c268fe (patch) | |
| tree | 7415aa5e3a8a3ad1b964d427dfca2eda6524c1f0 /django/db/models/sql/query.py | |
| parent | 49bb72c403b24b58d8d8067dcd945f57878df9f0 (diff) | |
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.
Diffstat (limited to 'django/db/models/sql/query.py')
| -rw-r--r-- | django/db/models/sql/query.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/django/db/models/sql/query.py b/django/db/models/sql/query.py index be257a5410..c62c9ac23e 100644 --- a/django/db/models/sql/query.py +++ b/django/db/models/sql/query.py @@ -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) |
