From 16837047be10d697e87366f1b061a525072d4610 Mon Sep 17 00:00:00 2001 From: Mario Date: Thu, 28 Sep 2023 15:06:04 +0200 Subject: [PATCH] fix device filter (#393) --- netbox_topology_views/forms.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/netbox_topology_views/forms.py b/netbox_topology_views/forms.py index ab326aa..7ddc133 100644 --- a/netbox_topology_views/forms.py +++ b/netbox_topology_views/forms.py @@ -37,7 +37,7 @@ class DeviceFilterForm( 'group', 'save_coords', 'show_unconnected', 'show_cables', 'show_logical_connections', 'show_single_cable_logical_conns', 'show_neighbors', 'show_circuit', 'show_power', 'show_wireless', )), - (_('Device'), ('device_id',)), + (_('Device'), ('id',)), (_('Location'), ('region_id', 'site_group_id', 'site_id', 'location_id', 'rack_id')), (_('Operation'), ('status', 'role_id', 'airflow', 'serial', 'asset_tag', 'mac_address')), (_('Hardware'), ('manufacturer_id', 'device_type_id', 'platform_id')), @@ -55,7 +55,7 @@ class DeviceFilterForm( required=False, label=_('Coordinate group'), ) - device_id = DynamicModelMultipleChoiceField( + id = DynamicModelMultipleChoiceField( queryset=Device.objects.all(), required=False, label=_('Device'),