mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-23 04:22:01 -06:00
Changed "clean_extra_choices" in "CustomFieldChoiceSetForm" to strip the space for value and label.
This commit is contained in:
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
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user