From 69fbd6aef92d2f89799746b5d1e9f40cd3745b56 Mon Sep 17 00:00:00 2001 From: Seb Harrington Date: Fri, 3 May 2024 13:55:16 +0100 Subject: [PATCH] Remove filtering of devices --- netbox_device_map/views.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/netbox_device_map/views.py b/netbox_device_map/views.py index ad4567a..6c2f5e9 100644 --- a/netbox_device_map/views.py +++ b/netbox_device_map/views.py @@ -61,8 +61,9 @@ class ConnectedCpeAjaxView(PermissionRequiredMixin, View): form = self.form(request.GET) if form.is_valid(): data = form.cleaned_data - connected_devices_qs = get_connected_devices(device, vlan=data['vlan'])\ - .filter(device_role__name=plugin_settings['cpe_device_role']).order_by() + connected_devices_qs = get_connected_devices(device, vlan=data['vlan']) + #\ + # .filter(device_role__name=plugin_settings['cpe_device_role']).order_by() connected_devices = [dict(id=d.id, name=d.name, url=d.get_absolute_url(), comments=d.comments) for d in connected_devices_qs] # Sorting list of CPE devices by the sequence of integers contained in the comments