1
0
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:
Jeremy Stretch
2023-08-03 07:49:54 -04:00
parent 04a2543e68
commit d9f3637e25
2 changed files with 6 additions and 0 deletions

View File

@ -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: