This commit is contained in:
halcyon
2015-04-14 20:09:11 +08:00
parent 3bfe0e3c16
commit 99293cc019

View File

@@ -253,7 +253,7 @@ def get_session_user_info(request):
if user:
user = user.first()
dept = user.dept
return [user.id, user.name, user, dept.id, dept.name, dept]
return [user.id, user.username, user, dept.id, dept.name, dept]
def get_user_dept(request):