summaryrefslogtreecommitdiff
path: root/django/db/models/sql/query.py
diff options
context:
space:
mode:
authorNick Pope <nick@nickpope.me.uk>2022-01-28 20:15:53 +0000
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2022-10-31 12:30:13 +0100
commitd3cb91db87b78629c0d2682630e90a048275179e (patch)
tree92476354cbb4df1bcff3cd1514a1bac6cbc98676 /django/db/models/sql/query.py
parenta320aab5129f4019b3c1d28b7a3b509582bc56f9 (diff)
downloaddjango-d3cb91db87b78629c0d2682630e90a048275179e.tar.gz
Used more augmented assignment statements.
Identified using the following command: $ git grep -I '\(\<[_a-zA-Z0-9]\+\>\) *= *\1 *[-+/*^%&|<>@]'
Diffstat (limited to 'django/db/models/sql/query.py')
-rw-r--r--django/db/models/sql/query.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/django/db/models/sql/query.py b/django/db/models/sql/query.py
index c2a71ff589..9735ce10c8 100644
--- a/django/db/models/sql/query.py
+++ b/django/db/models/sql/query.py
@@ -1531,7 +1531,7 @@ class Query(BaseExpression):
):
"""Add a Q-object to the current filter."""
connector = q_object.connector
- current_negated = current_negated ^ q_object.negated
+ current_negated ^= q_object.negated
branch_negated = branch_negated or q_object.negated
target_clause = WhereNode(connector=connector, negated=q_object.negated)
joinpromoter = JoinPromoter(