Explorar el Código

Allow null filtering of prefix VLAN

Jeremy Stretch hace 9 años
padre
commit
921b08d0c9
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      netbox/ipam/filters.py

+ 1 - 1
netbox/ipam/filters.py

@@ -126,7 +126,7 @@ class PrefixFilter(CustomFieldFilterSet, django_filters.FilterSet):
         to_field_name='slug',
         to_field_name='slug',
         label='Site (slug)',
         label='Site (slug)',
     )
     )
-    vlan_id = django_filters.ModelMultipleChoiceFilter(
+    vlan_id = NullableModelMultipleChoiceFilter(
         name='vlan',
         name='vlan',
         queryset=VLAN.objects.all(),
         queryset=VLAN.objects.all(),
         label='VLAN (ID)',
         label='VLAN (ID)',