From f4ee518893a1441aebdba4322d0692553bd8469e Mon Sep 17 00:00:00 2001 From: Leif Johansson Date: Wed, 9 Feb 2011 10:34:12 +0100 Subject: prefix in templates --- meetingtools/apps/auth/views.py | 5 +++-- templates/base.html | 15 ++++++++------- 2 files changed, 11 insertions(+), 9 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): diff --git a/templates/base.html b/templates/base.html index 951fdbd..86dea54 100644 --- a/templates/base.html +++ b/templates/base.html @@ -1,3 +1,4 @@ +{% load prefix %} @@ -6,13 +7,13 @@ - - - - - - - + + + + + + +