From 7c3ce63559adb00132cc06684ad26b96e450ffcc Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Tue, 2 May 2017 10:30:51 +0200 Subject: Make lazy translations --- example_project/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'example_project/__init__.py') diff --git a/example_project/__init__.py b/example_project/__init__.py index 0cfc3ae26..c6adb7559 100644 --- a/example_project/__init__.py +++ b/example_project/__init__.py @@ -1,5 +1,6 @@ # force the retranslation of generated strings and external module -from django.utils.translation import ugettext as _ +from django.utils.translation import ugettext_lazy as _ + _(u"username") _(u"email address") _(u"warehouse") -- cgit v1.2.3