From 8ec6f7c0b5ee98c8369b3ad39f3065fb5b69f092 Mon Sep 17 00:00:00 2001 From: Joseph Kennedy Date: Fri, 4 Aug 2017 12:08:22 -0400 Subject: [PATCH] Switched to correct ChoiceField --- netbox/dcim/forms.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/netbox/dcim/forms.py b/netbox/dcim/forms.py index 150026283..760a180b4 100644 --- a/netbox/dcim/forms.py +++ b/netbox/dcim/forms.py @@ -1574,7 +1574,7 @@ class InterfaceFilterForm(BootstrapMixin, forms.Form): class InterfaceListFilterForm(BootstrapMixin, forms.Form): site = forms.ModelChoiceField(required=False, queryset=Site.objects.all(), to_field_name='slug') device = forms.ModelChoiceField(required=False, queryset=Device.objects.all(), to_field_name='slug') - enabled = forms.ModelChoiceField(choices=IFACE_ENABLED_CHOICES,required=False) + enabled = forms.ChoiceField(choices=add_blank_choice(IFACE_ENABLED_CHOICES), required=False) role = FilterChoiceField( queryset=DeviceRole.objects.annotate(filter_count=Count('devices')), to_field_name='slug',