Explorar o código

#2675: Added InventoryItem search form field for 'discovered'

Jeremy Stretch %!s(int64=7) %!d(string=hai) anos
pai
achega
ba9fe408bc
Modificáronse 1 ficheiros con 6 adicións e 0 borrados
  1. 6 0
      netbox/dcim/forms.py

+ 6 - 0
netbox/dcim/forms.py

@@ -2703,6 +2703,12 @@ class InventoryItemFilterForm(BootstrapMixin, forms.Form):
         to_field_name='slug',
         null_label='-- None --'
     )
+    discovered = forms.NullBooleanField(
+        required=False,
+        widget=forms.Select(
+            choices=BOOLEAN_WITH_BLANK_CHOICES
+        )
+    )
 
 
 #