diff options
author | Leif Johansson <leifj@sunet.se> | 2011-02-09 10:34:12 +0100 |
---|---|---|
committer | Leif Johansson <leifj@sunet.se> | 2011-02-09 10:34:12 +0100 |
commit | f4ee518893a1441aebdba4322d0692553bd8469e (patch) | |
tree | b5672cc95dce41f8821ff3edb22b9bba869c097b /meetingtools/apps | |
parent | 23816211095cbc8bfde3313b3b1ccf4a43908420 (diff) |
prefix in templates
Diffstat (limited to 'meetingtools/apps')
-rw-r--r-- | meetingtools/apps/auth/views.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/meetingtools/apps/auth/views.py b/meetingtools/apps/auth/views.py index 877e43f..6828ac2 100644 --- a/meetingtools/apps/auth/views.py +++ b/meetingtools/apps/auth/views.py @@ -9,6 +9,7 @@ import datetime from django.views.decorators.cache import never_cache import logging from meetingtools.apps.userprofile.models import UserProfile +from meetingtools.multiresponse import redirect_to def meta(request,attr): v = request.META.get(attr) @@ -72,10 +73,10 @@ def accounts_login_federated(request): next = request.session.get("after_login_redirect", None) if next is not None: - return HttpResponseRedirect(next) + return redirect_to(next) else: pass - return HttpResponseRedirect("/") + return redirect_to("/") @never_cache def logout(request): |