Просмотр исходного кода

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

locky 3 лет назад
Родитель
Сommit
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)})