|
@@ -69,7 +69,8 @@ class APNConfigView(View):
|
|
language = LanguageModel.objects.filter(lang='en').first()
|
|
language = LanguageModel.objects.filter(lang='en').first()
|
|
|
|
|
|
# 查询tb_country_language和tb_country,获取国家名称和国家iso2代码
|
|
# 查询tb_country_language和tb_country,获取国家名称和国家iso2代码
|
|
- countries = CountryLanguageModel.objects.filter(language=language).select_related('country')
|
|
|
|
|
|
+ countries = CountryLanguageModel.objects.filter(language=language).select_related('country').order_by(
|
|
|
|
+ 'country__country_name')
|
|
|
|
|
|
# 返回国家名和对应的 country_code
|
|
# 返回国家名和对应的 country_code
|
|
country_iso_list = [{
|
|
country_iso_list = [{
|