Changed "clean_extra_choices" in "CustomFieldChoiceSetForm" to strip the space for value and label.
This commit is contained in:

committed by
Jeremy Stretch

parent
17799df72e
commit
85ca750ad7
@@ -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
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user