|
@@ -119,7 +119,7 @@ class AlgorithmShopView(View):
|
|
'algorithm_type__icon_url',
|
|
'algorithm_type__icon_url',
|
|
'title', 'subtitle', 'introduction',
|
|
'title', 'subtitle', 'introduction',
|
|
'install_explain', 'risk_warning',
|
|
'install_explain', 'risk_warning',
|
|
- 'algorithm_type__basic_function')
|
|
|
|
|
|
+ 'algorithm_type__basic_function', 'concerning')
|
|
if not explain_qs.exists():
|
|
if not explain_qs.exists():
|
|
return response.json(0, {})
|
|
return response.json(0, {})
|
|
item = explain_qs.first()
|
|
item = explain_qs.first()
|
|
@@ -135,6 +135,7 @@ class AlgorithmShopView(View):
|
|
'installExplain': item['install_explain'],
|
|
'installExplain': item['install_explain'],
|
|
'riskWarning': item['risk_warning'],
|
|
'riskWarning': item['risk_warning'],
|
|
'basicFunction': item['algorithm_type__basic_function'],
|
|
'basicFunction': item['algorithm_type__basic_function'],
|
|
|
|
+ 'concerning': item['concerning']
|
|
}
|
|
}
|
|
dt_info_qs = DeviceTypeAlgorithmInfo.objects.filter(algorithm_type=algorithm_dict['type']) \
|
|
dt_info_qs = DeviceTypeAlgorithmInfo.objects.filter(algorithm_type=algorithm_dict['type']) \
|
|
.annotate(deviceName=F('device_name'), deviceType=F('device_type'),
|
|
.annotate(deviceName=F('device_name'), deviceType=F('device_type'),
|