Browse Source

查询设备明细

linhaohong 1 year ago
parent
commit
bf918302f2
1 changed files with 1 additions and 1 deletions
  1. 1 1
      AdminController/CloudServiceManage/AgentDeviceController.py

+ 1 - 1
AdminController/CloudServiceManage/AgentDeviceController.py

@@ -95,7 +95,7 @@ class AgentDeviceView(View):
 
             if device_name:
                 # 根据device_name查询对应的type值
-                device_types = DeviceTypeModel.objects.filter(name=device_name).values_list('type', flat=True)
+                device_types = list(DeviceTypeModel.objects.filter(name=device_name).values_list('type', flat=True))
                 agent_device_qs = agent_device_qs.filter(type__in=device_types)
 
             if status: