Add empty_label to rack_id

This commit is contained in:
Joseph Kennedy 2017-08-31 17:43:11 -04:00
parent faa03f6098
commit f37c14c0d2

View File

@ -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(