mirror of
https://github.com/django/django.git
synced 2025-12-02 08:05:58 +00:00
Fixed #28996 -- Simplified some boolean constructs and removed trivial continue statements.
This commit is contained in:
parent
4bcec02368
commit
a38ae914d8
34 changed files with 95 additions and 159 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue