1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Fixes #4194: Role field should not be required when searching/filtering secrets

This commit is contained in:
Jeremy Stretch
2020-02-18 11:14:37 -05:00
parent a456cbb26c
commit 4ea8967c2d
2 changed files with 2 additions and 1 deletions

View File

@ -185,7 +185,7 @@ class SecretFilterForm(BootstrapMixin, CustomFieldFilterForm):
role = DynamicModelMultipleChoiceField(
queryset=SecretRole.objects.all(),
to_field_name='slug',
required=True,
required=False,
widget=APISelectMultiple(
api_url="/api/secrets/secret-roles/",
value_field="slug",