mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-23 16:06:43 -06:00
#13909 attached a clonable field multi selection, bug fixes
This commit is contained in:
parent
786f0cc7f3
commit
9aeed00b7c
@ -43,7 +43,7 @@ class DynamicMultipleChoiceField(forms.MultipleChoiceField):
|
||||
|
||||
if data is not None:
|
||||
self.choices = [
|
||||
choice for choice in self.choices if choice[0] in data
|
||||
choice for choice in self.choices if isinstance(self.choices, str) if choice[0] in data
|
||||
]
|
||||
|
||||
return bound_field
|
||||
|
Loading…
Reference in New Issue
Block a user