Explorar el Código

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

locky hace 2 años
padre
commit
f721f90802
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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'],