statistic_userprofile province_code to province_name

FFIB 5 years ago
parent
commit
38b592fd0a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      api/admin_views.py

+ 1 - 1
api/admin_views.py

@@ -238,7 +238,7 @@ def statistic_userprofile(request):
238 238
             except UserInfo.DoesNotExist:
239 239
                 continue
240 240
 
241
-            provinces[user.province_code] += 1
241
+            provinces[user.province_name] += 1
242 242
             sexs[user.sex] += 1
243 243
 
244 244
     return response(200, 'Get User Profile Success', u'获取用户画像成功', data={