Skip to content

Instantly share code, notes, and snippets.

@cmltaWt0
Created June 27, 2015 19:30
Show Gist options
  • Save cmltaWt0/71f202f7f79c1d54aea3 to your computer and use it in GitHub Desktop.
Save cmltaWt0/71f202f7f79c1d54aea3 to your computer and use it in GitHub Desktop.
Patch for issue #46 part 2
diff --git a/mysite/psa/views.py b/mysite/psa/views.py
index 3b8847a..51ea9ca 100644
--- a/mysite/psa/views.py
+++ b/mysite/psa/views.py
@@ -65,7 +65,7 @@ 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/'))
else:
params = request.GET
if 'next' in params: # must pass through for both GET or POST
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment