Explorar o código

修改获取国家列表旧接口

peng %!s(int64=2) %!d(string=hai) anos
pai
achega
91c91a87e6
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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: