fix user can not get permission applies bug

pull/12/head
Jiajun Liu 2015-07-03 23:06:58 +08:00
parent c25cd3c005
commit 915adb2fd3
1 changed files with 2 additions and 2 deletions

View File

@ -751,7 +751,7 @@ def perm_apply_log(request, offset):
header_title, path1, path2 = u'权限申请记录', u'权限管理', u'申请记录'
keyword = request.GET.get('keyword', '')
user_id = get_session_user_info(request)[0]
username = User.objects.get(id=user_id).name
username = User.objects.get(id=user_id).username
dept_name = get_session_user_info(request)[4]
status_dic = {'online': 0, 'offline': 1}
status = status_dic[offset]