1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Filter by site slug rather than by name

This commit is contained in:
Jeremy Stretch
2019-09-27 15:12:16 -04:00
parent 4889c8ff9b
commit aa9d034b5d

View File

@ -951,7 +951,7 @@ class CableFilter(django_filters.FilterSet):
)
site = MultiValueNumberFilter(
method='filter_device',
field_name='device__site__name'
field_name='device__site__slug'
)
class Meta: