From 524044a2d4771c6c72739a4492a90f65eb6c707e Mon Sep 17 00:00:00 2001 From: xdml Date: Sat, 18 May 2013 15:07:29 +0300 Subject: [PATCH] Use 'ugettext' instead of 'ugettext_lazy' in 'cmsplugin_contact.nospam.widgets.HoneypotWidget.render()' When rendering 'HoneypotWidget' language is already active and it is not necessary to use 'ugettext_lazy' as it returns object instance. Plus, string operator '%' will insert into string value of 'repr()' instead translated text. It results in incorrect HTML. --- cmsplugin_contact/nospam/widgets.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmsplugin_contact/nospam/widgets.py b/cmsplugin_contact/nospam/widgets.py index 9716a50..554218d 100644 --- a/cmsplugin_contact/nospam/widgets.py +++ b/cmsplugin_contact/nospam/widgets.py @@ -1,5 +1,5 @@ from django import forms -from django.utils.translation import ugettext_lazy as _, get_language +from django.utils.translation import ugettext as _, get_language from django.utils.safestring import mark_safe