From f37c14c0d2fc565e8f715018fc160a69a962c731 Mon Sep 17 00:00:00 2001 From: Joseph Kennedy Date: Thu, 31 Aug 2017 17:43:11 -0400 Subject: [PATCH] Add empty_label to rack_id --- netbox/dcim/forms.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/netbox/dcim/forms.py b/netbox/dcim/forms.py index 14a80a900..fafccc90f 100644 --- a/netbox/dcim/forms.py +++ b/netbox/dcim/forms.py @@ -1629,7 +1629,8 @@ class InterfaceListFilterForm(BootstrapMixin, forms.Form): required=False, queryset=Rack.objects.annotate(filter_count=Count('devices')), label='Rack', - null_option=(None, 'None') + null_option=(None, 'None'), + empty_label='--------' ) enabled = forms.ChoiceField(choices=add_blank_choice(IFACE_ENABLED_CHOICES), required=False) role = FilterChoiceField(