mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-27 10:58:37 -06:00
Changed "clean_extra_choices" in "CustomFieldChoiceSetForm" to strip the space for value and label.
This commit is contained in:
parent
9052524a54
commit
573c550ac3
@ -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