فهرست منبع

修改获取国家列表旧接口

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: