mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-07 08:08:15 -06:00
Adding back all but device field to InterfaceListFilterForm.
This commit is contained in:
parent
d8fb8e60f9
commit
421779cb56
@ -1574,12 +1574,12 @@ 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.ChoiceField(choices=add_blank_choice(IFACE_ENABLED_CHOICES), required=False)
|
||||
#role = FilterChoiceField(
|
||||
# queryset=DeviceRole.objects.annotate(filter_count=Count('devices')),
|
||||
# to_field_name='slug',
|
||||
#)
|
||||
#mac_address = forms.CharField(required=False, label='MAC address')
|
||||
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',
|
||||
)
|
||||
mac_address = forms.CharField(required=False, label='MAC address')
|
||||
|
||||
|
||||
#
|
||||
|
Loading…
Reference in New Issue
Block a user