Browse Source

用户region_country字段对应地区表id

guanhailong 2 years ago
parent
commit
4af1f752ce
1 changed files with 1 additions and 1 deletions
  1. 1 1
      AdminController/UserManageController.py

+ 1 - 1
AdminController/UserManageController.py

@@ -370,7 +370,7 @@ class UserManagement(View):
                 rid = role.rid if role else 1  # 不存在角色默认分配为'Users'
                 user_ex_qs = UserExModel.objects.filter(userID_id=device_user.userID).values('appBundleId')
                 app_bundle_id = user_ex_qs[0]['appBundleId'] if user_ex_qs.exists() else ''
-                region_country = CountryModel.objects.filter(number=device_user.region_country).values('country_name')
+                region_country = CountryModel.objects.filter(id=device_user.region_country).values('country_name')
                 region_country = region_country[0]['country_name'] if region_country.exists() else '未知国家'
                 user_list.append({
                     'userID': device_user.userID,