From 92bcb49ab1a4bf73225b8dec1cf09fd6dff8a879 Mon Sep 17 00:00:00 2001 From: Radek Czajka Date: Mon, 19 Mar 2012 11:43:54 +0100 Subject: [PATCH] lazy gettext in pdf form --- apps/catalogue/views.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/catalogue/views.py b/apps/catalogue/views.py index fad77751e..7ead47115 100644 --- a/apps/catalogue/views.py +++ b/apps/catalogue/views.py @@ -15,7 +15,7 @@ from django.contrib.auth.decorators import login_required, user_passes_test from django.utils.datastructures import SortedDict from django.utils.http import urlquote_plus from django.utils import translation -from django.utils.translation import ugettext as _ +from django.utils.translation import ugettext as _, ugettext_lazy from django.views.decorators.cache import never_cache from ajaxable.utils import JSONResponse, AjaxableFormView @@ -552,8 +552,8 @@ def download_custom_pdf(request, slug, method='GET'): class CustomPDFFormView(AjaxableFormView): form_class = forms.CustomPDFForm - title = _('Download custom PDF') - submit = _('Download') + title = ugettext_lazy('Download custom PDF') + submit = ugettext_lazy('Download') def __call__(self, request): from copy import copy -- 2.20.1