Created
June 27, 2015 12:06
-
-
Save cmltaWt0/be5113d5f8e30596d438 to your computer and use it in GitHub Desktop.
Issue #46 patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/mysite/psa/views.py b/mysite/psa/views.py | |
index 37d49d5..66de578 100644 | |
--- a/mysite/psa/views.py | |
+++ b/mysite/psa/views.py | |
@@ -63,12 +63,13 @@ def custom_login(request): | |
if user is not None: | |
if user.is_active: | |
login(request, user) | |
- return redirect(request.POST.get('next', '/ct/')) | |
+ return redirect(request.POST.get('next', '/ct/')) | |
return render_to_response('psa/custom_login.html', | |
context_instance=RequestContext(request, | |
{ | |
'available_backends': load_backends( | |
settings.AUTHENTICATION_BACKENDS), | |
+ 'next': request.GET.get('next') | |
})) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment