diff options
author | Дилян Палаузов <Dilyan.Palauzov@db.com> | 2018-01-12 09:05:16 -0500 |
---|---|---|
committer | Tim Graham <timograham@gmail.com> | 2018-01-12 12:44:50 -0500 |
commit | a38ae914d89809aed6d79337b74a8b31b6d3849a (patch) | |
tree | 42a8465e37fc02b70d8d3f876d23947acb1a2455 /django/db/models/sql/query.py | |
parent | 4bcec02368b7e5466f64dc17286689b16613c94b (diff) | |
download | django-a38ae914d89809aed6d79337b74a8b31b6d3849a.tar.gz |
Fixed #28996 -- Simplified some boolean constructs and removed trivial continue statements.
Diffstat (limited to 'django/db/models/sql/query.py')
-rw-r--r-- | django/db/models/sql/query.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/django/db/models/sql/query.py b/django/db/models/sql/query.py index e657594c86..9c97ed772d 100644 --- a/django/db/models/sql/query.py +++ b/django/db/models/sql/query.py @@ -666,10 +666,9 @@ class Query: workset = {} for model, values in seen.items(): for field in model._meta.local_fields: - if field in values: - continue - m = field.model._meta.concrete_model - add_to_dict(workset, m, field) + if field not in values: + m = field.model._meta.concrete_model + add_to_dict(workset, m, field) for model, values in must_include.items(): # If we haven't included a model in workset, we don't add the # corresponding must_include fields for that model, since an |