浏览代码

修改获取国家列表旧接口

peng 2 年之前
父节点
当前提交
91c91a87e6
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Controller/RegionController.py

+ 1 - 1
Controller/RegionController.py

@@ -277,7 +277,7 @@ class RegionView(View):
 
             lang = lang_qs[0]
             country_qs = CountryLanguageModel.objects.filter(language_id=lang.id).annotate(
-                country_number=F('country')).values('country_name', 'country_number')
+                country__number=F('country')).values('country_name', 'country__number')
 
             return response.json(0, list(country_qs))
         else: