chenjunkai 6 年之前
父節點
當前提交
52c0865ed9
共有 1 個文件被更改,包括 4 次插入4 次删除
  1. 4 4
      Controller/AppInfo.py

+ 4 - 4
Controller/AppInfo.py

@@ -214,9 +214,9 @@ class AppVersionView(View):
         appBundleId = request_dict.get('appBundleId', None)
         appBundleId = request_dict.get('appBundleId', None)
         app_type = request_dict.get('app_type', None)
         app_type = request_dict.get('app_type', None)
         lang = request_dict.get('lang', None)
         lang = request_dict.get('lang', None)
-        queryset = App_Info.objects.filter(appBundleId=appBundleId,app_type=app_type)
-        queryset_dict = CommonService.qs_to_dict(queryset).get('datas')
-        for k, v in enumerate(queryset_dict):
-            data.append(json.loads(queryset_dict[k]['fields']['content']))
+        qs = App_Info.objects.filter(appBundleId=appBundleId,app_type=app_type).values('content')
+        ql = CommonService.qs_to_list(qs)
+        for q in ql:
+            data.append(json.loads(q['content']))
         return render_to_response('appVerList.html', locals())
         return render_to_response('appVerList.html', locals())