Explorar el Código

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

Jeremy Stretch hace 7 años
padre
commit
ba9fe408bc
Se han modificado 1 ficheros con 6 adiciones y 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
+        )
+    )
 
 
 #