Permalink
Browse files

Use 'ugettext' instead of 'ugettext_lazy' in 'cmsplugin_contact.nospa…

…m.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.
  • Loading branch information...
1 parent ea95740 commit 524044a2d4771c6c72739a4492a90f65eb6c707e @xdml xdml committed May 18, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 cmsplugin_contact/nospam/widgets.py
View
2 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

0 comments on commit 524044a

Please sign in to comment.