Ticket #6520: nullbooleanselect_patch.diff
File nullbooleanselect_patch.diff, 719 bytes (added by , 17 years ago) |
---|
-
usr/local/src/django_src/django/newforms/widgets.py
228 228 A Select Widget intended to be used with NullBooleanField. 229 229 """ 230 230 def __init__(self, attrs=None): 231 choices = ((u'1', u gettext('Unknown')), (u'2', ugettext('Yes')), (u'3', ugettext('No')))231 choices = ((u'1', u'---------'), (u'2', ugettext('Yes')), (u'3', ugettext('No'))) 232 232 super(NullBooleanSelect, self).__init__(attrs, choices) 233 233 234 234 def render(self, name, value, attrs=None, choices=()):