summaryrefslogtreecommitdiff
path: root/django/db/models/sql/where.py
diff options
context:
space:
mode:
Diffstat (limited to 'django/db/models/sql/where.py')
-rw-r--r--django/db/models/sql/where.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/django/db/models/sql/where.py b/django/db/models/sql/where.py
index 3e11fa53c0..c8857a01fe 100644
--- a/django/db/models/sql/where.py
+++ b/django/db/models/sql/where.py
@@ -61,7 +61,7 @@ class WhereNode(tree.Node):
sql, params = self.make_atom(child, qn)
format = '%s'
except EmptyResultSet:
- if self.connector == AND and not node.negated:
+ if node.connector == AND and not node.negated:
# We can bail out early in this particular case (only).
raise
elif node.negated: