Changed "clean_extra_choices" in "CustomFieldChoiceSetForm" to strip the space for value and label.

This commit is contained in:
Julio-Oliveira-Encora 2024-05-20 11:16:14 -03:00 committed by Jeremy Stretch
parent 17799df72e
commit 85ca750ad7

View File

@ -122,7 +122,7 @@ class CustomFieldChoiceSetForm(forms.ModelForm):
label = label.replace('\\:', ':') label = label.replace('\\:', ':')
except ValueError: except ValueError:
value, label = line, line value, label = line, line
data.append((value, label)) data.append((value.strip(), label.strip()))
return data return data