mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-07 16:18:16 -06:00
Fix indent
This commit is contained in:
parent
560a0e7758
commit
5b57bb94b9
@ -622,7 +622,7 @@ class InterfaceListFilter(django_filters.FilterSet):
|
||||
|
||||
def filter_site(self, queryset, name, value):
|
||||
try:
|
||||
device = Device.objects.select_related('site').get(**{name: value})
|
||||
device = Device.objects.select_related('site').get(**{name: value})
|
||||
ordering = device.device_type.interface_ordering
|
||||
return queryset.filter(device=device).order_naturally(ordering)
|
||||
except Device.DoesNotExist:
|
||||
|
Loading…
Reference in New Issue
Block a user