Browse Source

Allow null filtering of prefix VLAN

Jeremy Stretch 8 years ago
parent
commit
921b08d0c9
1 changed files with 1 additions and 1 deletions
  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)',