|
@@ -1748,8 +1748,10 @@ class DeviceManagement(View):
|
|
|
@return:
|
|
|
"""
|
|
|
try:
|
|
|
- device_algorithm_explain_qs = DeviceAlgorithmExplain.objects.filter(lang='cn').values('title', 'algorithm_type_id')
|
|
|
+ device_algorithm_explain_qs = DeviceAlgorithmExplain.objects.filter(lang='cn').values('title', 'algorithm_type__type')
|
|
|
device_algorithm_explain = list(device_algorithm_explain_qs)
|
|
|
+ for item in device_algorithm_explain:
|
|
|
+ item['algorithm_type_id'] = item.pop('algorithm_type__type')
|
|
|
device_algorithm_explain.append({"title": "无", "algorithm_type_id": 99})
|
|
|
return response.json(0, device_algorithm_explain)
|
|
|
except Exception as e:
|