mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-06 07:38:16 -06:00
Switched to correct ChoiceField
This commit is contained in:
parent
dd0544c25c
commit
8ec6f7c0b5
@ -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',
|
||||
|
Loading…
Reference in New Issue
Block a user