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