mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-02 05:46:25 -06:00
Resolve E714 errors
This commit is contained in:
parent
0398b5fed1
commit
c7046ef695
@ -142,7 +142,7 @@ class DynamicModelChoiceMixin:
|
||||
|
||||
if data:
|
||||
# When the field is multiple choice pass the data as a list if it's not already
|
||||
if isinstance(bound_field.field, DynamicModelMultipleChoiceField) and not type(data) is list:
|
||||
if isinstance(bound_field.field, DynamicModelMultipleChoiceField) and type(data) is not list:
|
||||
data = [data]
|
||||
|
||||
field_name = getattr(self, 'to_field_name') or 'pk'
|
||||
|
Loading…
Reference in New Issue
Block a user