Browse Source

修改获取国家列表旧接口

peng 2 years ago
parent
commit
91c91a87e6
1 changed files with 1 additions and 1 deletions
  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: