mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-22 20:12:00 -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('\\:', ':')
|
||||
except ValueError:
|
||||
value, label = line, line
|
||||
data.append((value, label))
|
||||
data.append((value.strip(), label.strip()))
|
||||
return data
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user