Skip to content

Commit

Permalink
Fixes #13361: Extra choices field on custom field choice set form sho…
Browse files Browse the repository at this point in the history
…uld not be required
  • Loading branch information
jeremystretch committed Aug 3, 2023
1 parent 04a2543 commit d9f3637
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/release-notes/version-3.6.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
### Bug Fixes

* [#13351](https://github.com/netbox-community/netbox/issues/13351) - Fix missing text due to incorrectly applied translation tags
* [#13361](https://github.com/netbox-community/netbox/issues/13361) - Extra choices field on custom field choice set form should not be required

---

Expand Down
5 changes: 5 additions & 0 deletions netbox/extras/forms/model_forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,11 @@ def __init__(self, *args, **kwargs):
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:
Expand Down

0 comments on commit d9f3637

Please sign in to comment.