Make loop more efficient
This commit is contained in:
parent
e0445ecb8a
commit
493f68eedf
1 changed files with 1 additions and 1 deletions
|
@ -233,7 +233,7 @@ class CrdModelFormMixin:
|
|||
# General fieldset for non-spec fields
|
||||
general_fields = [
|
||||
field_name
|
||||
for field_name, field in self.fields.items()
|
||||
for field_name in self.fields.keys()
|
||||
if not field_name.startswith("spec.")
|
||||
]
|
||||
if general_fields:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue