mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-07 08:08:15 -06:00
Back to slug for device_role
This commit is contained in:
parent
833a234462
commit
c628521b6a
@ -616,7 +616,7 @@ class InterfaceListFilter(django_filters.FilterSet):
|
||||
def filter_role(self, queryset, name, value):
|
||||
if not value.strip():
|
||||
return queryset
|
||||
return queryset.filter(device__device_role__name__slug=value)
|
||||
return queryset.filter(device__device_role__slug=value)
|
||||
|
||||
def filter_type(self, queryset, name, value):
|
||||
value = value.strip().lower()
|
||||
|
Loading…
Reference in New Issue
Block a user