Sfoglia il codice sorgente

Fixes #9065: Min/max VID should not be required when filtering VLAN groups

jeremystretch 3 anni fa
parent
commit
f4e78b0ea6
2 ha cambiato i file con 5 aggiunte e 0 eliminazioni
  1. 1 0
      docs/release-notes/version-3.2.md
  2. 4 0
      netbox/ipam/forms/filtersets.py

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

@@ -11,6 +11,7 @@
 * [#8931](https://github.com/netbox-community/netbox/issues/8931) - Copy assigned tenant when cloning a location
 * [#8931](https://github.com/netbox-community/netbox/issues/8931) - Copy assigned tenant when cloning a location
 * [#9057](https://github.com/netbox-community/netbox/issues/9057) - Fix missing instance counts for module types
 * [#9057](https://github.com/netbox-community/netbox/issues/9057) - Fix missing instance counts for module types
 * [#9061](https://github.com/netbox-community/netbox/issues/9061) - Change inheritance order for DeviceComponentFilterSets
 * [#9061](https://github.com/netbox-community/netbox/issues/9061) - Change inheritance order for DeviceComponentFilterSets
+* [#9065](https://github.com/netbox-community/netbox/issues/9065) - Min/max VID should not be required when filtering VLAN groups
 
 
 ---
 ---
 
 

+ 4 - 0
netbox/ipam/forms/filtersets.py

@@ -377,12 +377,16 @@ class VLANGroupFilterForm(NetBoxModelFilterSetForm):
         label=_('Rack')
         label=_('Rack')
     )
     )
     min_vid = forms.IntegerField(
     min_vid = forms.IntegerField(
+        required=False,
         min_value=VLAN_VID_MIN,
         min_value=VLAN_VID_MIN,
         max_value=VLAN_VID_MAX,
         max_value=VLAN_VID_MAX,
+        label='Minimum VID'
     )
     )
     max_vid = forms.IntegerField(
     max_vid = forms.IntegerField(
+        required=False,
         min_value=VLAN_VID_MIN,
         min_value=VLAN_VID_MIN,
         max_value=VLAN_VID_MAX,
         max_value=VLAN_VID_MAX,
+        label='Maximum VID'
     )
     )
     tag = TagFilterField(model)
     tag = TagFilterField(model)