mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
Fixes #13361: Extra choices field on custom field choice set form should not be required
This commit is contained in:
@ -89,6 +89,11 @@ class CustomFieldForm(BootstrapMixin, forms.ModelForm):
|
||||
class CustomFieldChoiceSetForm(BootstrapMixin, forms.ModelForm):
|
||||
extra_choices = forms.CharField(
|
||||
widget=ChoicesWidget(),
|
||||
required=False,
|
||||
help_text=_(
|
||||
'Enter one choice per line. An optional label may be specified for each choice by appending it with a '
|
||||
'comma (for example, "choice1,First Choice").'
|
||||
)
|
||||
)
|
||||
|
||||
class Meta:
|
||||
|
Reference in New Issue
Block a user