diff --git a/netbox/dcim/filtersets.py b/netbox/dcim/filtersets.py index 4d3ce3a91..d9b1a73dd 100644 --- a/netbox/dcim/filtersets.py +++ b/netbox/dcim/filtersets.py @@ -1729,8 +1729,7 @@ class CableFilterSet(TenancyFilterSet, NetBoxModelFilterSet): def filter_by_cable_end(self, queryset, name, value, side): # Filter by termination id and cable_end type - qs = queryset.filter(**{f'{name}__in': value, 'terminations__cable_end': side}).distinct() - return qs + return queryset.filter(**{f'{name}__in': value, 'terminations__cable_end': side}).distinct() def filter_by_cable_end_a(self, queryset, name, value): # Filter by termination id and cable_end type