Ticket #6520: nullbooleanselect_patch.diff

File nullbooleanselect_patch.diff, 719 bytes (added by Peter Baumgartner, 17 years ago)
  • usr/local/src/django_src/django/newforms/widgets.py

     
    228228    A Select Widget intended to be used with NullBooleanField.
    229229    """
    230230    def __init__(self, attrs=None):
    231         choices = ((u'1', ugettext('Unknown')), (u'2', ugettext('Yes')), (u'3', ugettext('No')))
     231        choices = ((u'1', u'---------'), (u'2', ugettext('Yes')), (u'3', ugettext('No')))
    232232        super(NullBooleanSelect, self).__init__(attrs, choices)
    233233
    234234    def render(self, name, value, attrs=None, choices=()):
Back to Top