瀏覽代碼

查询设备明细

linhaohong 1 年之前
父節點
當前提交
bf918302f2
共有 1 個文件被更改,包括 1 次插入1 次删除
  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: