Commit b7aa1ab3 authored by halcyon's avatar halcyon

jperm问题

parent 27d6df7a
...@@ -700,7 +700,7 @@ def perm_apply_exec(request): ...@@ -700,7 +700,7 @@ def perm_apply_exec(request):
smg = '此权限已经审批完成, 请勿重复审批, 十秒钟后返回首页' smg = '此权限已经审批完成, 请勿重复审批, 十秒钟后返回首页'
return render_to_response('jperm/perm_apply_exec.html', locals(), context_instance=RequestContext(request)) return render_to_response('jperm/perm_apply_exec.html', locals(), context_instance=RequestContext(request))
else: else:
user = User.objects.get(username=q_apply.applyer) user = User.objects.get(name=q_apply.applyer)
mail_address = user.email mail_address = user.email
time_now = datetime.datetime.now().strftime('%Y-%m-%d %H:%M:%S') time_now = datetime.datetime.now().strftime('%Y-%m-%d %H:%M:%S')
p_apply.update(status=1, approver=approver, date_end=time_now) p_apply.update(status=1, approver=approver, date_end=time_now)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment