Просмотр исходного кода

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

Jeremy Stretch 6 лет назад
Родитель
Сommit
4ea8967c2d
2 измененных файлов с 2 добавлено и 1 удалено
  1. 1 0
      docs/release-notes/version-2.7.md
  2. 1 1
      netbox/secrets/forms.py

+ 1 - 0
docs/release-notes/version-2.7.md

@@ -12,6 +12,7 @@
 * [#4175](https://github.com/netbox-community/netbox/issues/4175) - Fix potential exception when bulk editing objects from a filtered list
 * [#4179](https://github.com/netbox-community/netbox/issues/4179) - Site is required when creating a rack group or power panel
 * [#4183](https://github.com/netbox-community/netbox/issues/4183) - Fix representation of NaturalOrderingField values in change log
+* [#4194](https://github.com/netbox-community/netbox/issues/4194) - Role field should not be required when searching/filtering secrets
 
 ---
 

+ 1 - 1
netbox/secrets/forms.py

@@ -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",