From 3fa735021df76db544d4c715a5563c98d229076d Mon Sep 17 00:00:00 2001 From: Jeremy Stretch Date: Wed, 19 Jul 2023 08:48:44 -0400 Subject: [PATCH] Incorporate PR feedback --- netbox/extras/forms/model_forms.py | 2 +- netbox/extras/models/customfields.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/netbox/extras/forms/model_forms.py b/netbox/extras/forms/model_forms.py index d62af7681..428c6391b 100644 --- a/netbox/extras/forms/model_forms.py +++ b/netbox/extras/forms/model_forms.py @@ -95,7 +95,7 @@ class CustomFieldChoiceSetForm(BootstrapMixin, forms.ModelForm): fields = ('name', 'description', 'extra_choices', 'order_alphabetically') def clean_extra_choices(self): - return self.cleaned_data['extra_choices'].split('\n') + return self.cleaned_data['extra_choices'].splitlines() class CustomLinkForm(BootstrapMixin, forms.ModelForm): diff --git a/netbox/extras/models/customfields.py b/netbox/extras/models/customfields.py index f706a649b..91804521c 100644 --- a/netbox/extras/models/customfields.py +++ b/netbox/extras/models/customfields.py @@ -647,7 +647,7 @@ class CustomFieldChoiceSet(ChangeLoggedModel): ) extra_choices = ArrayField( base_field=models.CharField(max_length=100), - help_text=_('Comma-separated list of available choices (for selection fields)') + help_text=_('List of field choices') ) order_alphabetically = models.BooleanField( default=False,