mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-13 16:47:34 -06:00
Fix CSVModelMultipleChoiceField.clean assuming all values are str/None
This commit is contained in:
parent
0f4afbca2c
commit
b31da39c4a
@ -79,7 +79,8 @@ class CSVModelMultipleChoiceField(forms.ModelMultipleChoiceField):
|
||||
}
|
||||
|
||||
def clean(self, value):
|
||||
value = value.split(',') if value else []
|
||||
if not isinstance(value, list):
|
||||
value = value.split(',') if value else []
|
||||
return super().clean(value)
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user