From 1f3cfaf25a4c1622a022cdbb47f654ff468ca6a5 Mon Sep 17 00:00:00 2001 From: Emanuel Schuetze Date: Mon, 23 Jul 2012 23:06:36 +0200 Subject: [PATCH] Added ugettext_lazy for 403 error page. --- openslides/utils/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/openslides/utils/utils.py b/openslides/utils/utils.py index 6ac487e00..6d14b35a6 100644 --- a/openslides/utils/utils.py +++ b/openslides/utils/utils.py @@ -24,7 +24,7 @@ from django.http import HttpResponse, HttpResponseForbidden from django.shortcuts import render_to_response, redirect from django.template import RequestContext from django.template.loader import render_to_string -from django.utils.translation import ugettext as _ +from django.utils.translation import ugettext as _, ugettext_lazy from openslides.utils.signals import template_manipulation @@ -108,7 +108,7 @@ def permission_required(perm, login_url=None): def render_to_forbitten(request, error= - _("Sorry, you have no rights to see this page.")): + ugettext_lazy("Sorry, you have no rights to see this page.")): return HttpResponseForbidden(render_to_string('403.html', {'error': error}, context_instance=RequestContext(request)))