#13909 attached a clonable field multi selection, bug fixes

This commit is contained in:
yash-pal1 2023-09-29 12:17:36 +05:30
parent 786f0cc7f3
commit 9aeed00b7c

View File

@ -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