mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-25 08:46:10 -06:00
Incorporate PR feedback
This commit is contained in:
parent
ed2d78fef4
commit
3fa735021d
@ -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):
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user