Ver Fonte

查询设备明细

linhaohong há 1 ano atrás
pai
commit
bf918302f2

+ 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: