diff options
Diffstat (limited to 'django/db/models/query_utils.py')
| -rw-r--r-- | django/db/models/query_utils.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/django/db/models/query_utils.py b/django/db/models/query_utils.py index a6b7154541..96409cc67c 100644 --- a/django/db/models/query_utils.py +++ b/django/db/models/query_utils.py @@ -100,7 +100,10 @@ class Q(tree.Node): def resolve_expression(self, query=None, allow_joins=True, reuse=None, summarize=False, for_save=False): # We must promote any new joins to left outer joins so that when Q is # used as an expression, rows aren't filtered due to joins. - clause, joins = query._add_q(self, reuse, allow_joins=allow_joins, split_subq=False) + clause, joins = query._add_q( + self, reuse, allow_joins=allow_joins, split_subq=False, + check_filterable=False, + ) query.promote_joins(joins) return clause |
