From b7aa1ab3dcdc3137d243b015998c7f871e7c557a Mon Sep 17 00:00:00 2001 From: halcyon <864072399@qq.com> Date: Wed, 22 Apr 2015 17:50:46 +0800 Subject: [PATCH] =?UTF-8?q?jperm=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- jperm/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jperm/views.py b/jperm/views.py index d6d6bf2c3..ed633a763 100644 --- a/jperm/views.py +++ b/jperm/views.py @@ -700,7 +700,7 @@ def perm_apply_exec(request): smg = '此权限已经审批完成, 请勿重复审批, 十秒钟后返回首页' return render_to_response('jperm/perm_apply_exec.html', locals(), context_instance=RequestContext(request)) else: - user = User.objects.get(username=q_apply.applyer) + user = User.objects.get(name=q_apply.applyer) mail_address = user.email time_now = datetime.datetime.now().strftime('%Y-%m-%d %H:%M:%S') p_apply.update(status=1, approver=approver, date_end=time_now)