Remove filtering of devices

This commit is contained in:
Seb Harrington 2024-05-03 13:55:16 +01:00
parent b422a926de
commit 69fbd6aef9

View File

@ -61,8 +61,9 @@ class ConnectedCpeAjaxView(PermissionRequiredMixin, View):
form = self.form(request.GET) form = self.form(request.GET)
if form.is_valid(): if form.is_valid():
data = form.cleaned_data data = form.cleaned_data
connected_devices_qs = get_connected_devices(device, vlan=data['vlan'])\ connected_devices_qs = get_connected_devices(device, vlan=data['vlan'])
.filter(device_role__name=plugin_settings['cpe_device_role']).order_by() #\
# .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) connected_devices = [dict(id=d.id, name=d.name, url=d.get_absolute_url(), comments=d.comments)
for d in connected_devices_qs] for d in connected_devices_qs]
# Sorting list of CPE devices by the sequence of integers contained in the comments # Sorting list of CPE devices by the sequence of integers contained in the comments