#17190: NullBooleanSelect uses ugettext, should be ugettext_lazy
----------------------------+--------------------
     Reporter:  pennersr    |      Owner:  nobody
         Type:  Bug         |     Status:  new
    Component:  Forms       |    Version:  1.3
     Severity:  Normal      |   Keywords:
 Triage Stage:  Unreviewed  |  Has patch:  1
Easy pickings:  1           |      UI/UX:  1
----------------------------+--------------------
 See django.forms.widgets:

 {{{
 --- widgets.py.orig     2011-11-10 10:40:05.000000000 +0100
 +++ widgets.py.new      2011-11-10 10:41:05.000000000 +0100
 @@ -545,7 +545,7 @@
      A Select Widget intended to be used with NullBooleanField.
      """
      def __init__(self, attrs=None):
 -        choices = ((u'1', ugettext('Unknown')), (u'2', ugettext('Yes')),
 (u'3', ugettext('No')))
 +        choices = ((u'1', ugettext_lazy('Unknown')), (u'2',
 ugettext_lazy('Yes')), (u'3', ugettext_lazy('No')))
          super(NullBooleanSelect, self).__init__(attrs, choices)

      def render(self, name, value, attrs=None, choices=()):
 }}}

-- 
Ticket URL: <https://code.djangoproject.com/ticket/17190>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to