跳转回调链接修改为相对路径

This commit is contained in:
virusdefender 2016-05-31 11:12:54 +08:00
parent 4a45ddb9e9
commit 257778d045
No known key found for this signature in database
GPG Key ID: 1686FB5677979E61

View File

@ -32,7 +32,7 @@ def check_user_contest_permission(func):
if request.is_ajax():
return error_response(u"请先登录")
else:
return HttpResponseRedirect("/login/?__from=" + urllib.quote(request.build_absolute_uri()))
return HttpResponseRedirect("/login/?__from=" + urllib.quote(request.path))
# kwargs 就包含了 url 里面的参数
if "contest_id" in kwargs: