Skip to content

Commit

Permalink
Changed "clean_extra_choices" in "CustomFieldChoiceSetForm" to strip …
Browse files Browse the repository at this point in the history
…the space for value and label.
  • Loading branch information
Julio-Oliveira-Encora authored and jeremystretch committed May 21, 2024
1 parent 17799df commit 85ca750
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion netbox/extras/forms/model_forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ def clean_extra_choices(self):
label = label.replace('\\:', ':')
except ValueError:
value, label = line, line
data.append((value, label))
data.append((value.strip(), label.strip()))
return data


Expand Down

0 comments on commit 85ca750

Please sign in to comment.