소스 검색

获取套餐ID作为选项只返回套餐id

locky 3 년 전
부모
커밋
6b3625e855
1개의 변경된 파일1개의 추가작업 그리고 3개의 파일을 삭제
  1. 1 3
      AdminController/AiServeController.py

+ 1 - 3
AdminController/AiServeController.py

@@ -66,9 +66,7 @@ class AiServeView(View):
         isSelect = request_dict.get('isSelect', None)
         if isSelect:
             # 获取套餐ID作为选项
-            ai_meal_qs = AiStoreMeal.objects.filter(
-                lang__lang='cn').values(
-                'id', 'lang__title')
+            ai_meal_qs = AiStoreMeal.objects.filter().values('id')
             return response.json(
                 0, {'list': CommonService.qs_to_list(ai_meal_qs)})