Jelajahi Sumber

查询订单返回用户国家信息2

locky 2 tahun lalu
induk
melakukan
f721f90802
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      AdminController/ServeManagementController.py

+ 1 - 1
AdminController/ServeManagementController.py

@@ -736,7 +736,7 @@ class serveManagement(View):
                 country = 'N/A'
                 country_qs = CountryModel.objects.filter(id=order['userID__region_country']).values('country_name')
                 if country_qs.exists():
-                    country = country_qs['country_name']
+                    country = country_qs[0]['country_name']
                 serialNumber = CommonService.query_serial_with_uid(order['UID'])
                 data = {
                     'orderID': order['orderID'],