Explorar el Código

修改获取国家列表旧接口

peng hace 2 años
padre
commit
91c91a87e6
Se han modificado 1 ficheros con 1 adiciones y 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: