diff options
author | Nick Pope <nick@nickpope.me.uk> | 2022-01-28 20:15:53 +0000 |
---|---|---|
committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2022-10-31 12:30:13 +0100 |
commit | d3cb91db87b78629c0d2682630e90a048275179e (patch) | |
tree | 92476354cbb4df1bcff3cd1514a1bac6cbc98676 /django/db/models/sql/query.py | |
parent | a320aab5129f4019b3c1d28b7a3b509582bc56f9 (diff) | |
download | django-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.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 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( |