소스 검색

shopify修改国家列表排序

linhaohong 10 달 전
부모
커밋
52d88bafac
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      Controller/ShopifyController.py

+ 1 - 1
Controller/ShopifyController.py

@@ -416,7 +416,7 @@ class ShopifyView(View):
             language = lang_qs[0]
             country_qs = CountryLanguageModel.objects.filter(language_id=language.id)
             country_qs = country_qs.annotate(api=F('country__region__zosi_api'), country_code=F('country__country_code'))
-            country_qs = country_qs.values('country_id', 'country_name', 'country_code', 'api').order_by('country_id')
+            country_qs = country_qs.values('country_id', 'country_name', 'country_code', 'api').order_by('country_name')
             country_list = []
             for country in country_qs:
                 country['api'] = country['api']