Ticket #3127: NullBooleanFieldI18n.patch
File NullBooleanFieldI18n.patch, 756 bytes (added by , 18 years ago) |
---|
-
django/forms/__init__.py
569 569 "This SelectField provides 'Yes', 'No' and 'Unknown', mapping results to True, False or None" 570 570 def __init__(self, field_name, is_required=False, validator_list=None): 571 571 if validator_list is None: validator_list = [] 572 SelectField.__init__(self, field_name, choices=[('1', 'Unknown'), ('2', 'Yes'), ('3', 'No')],572 SelectField.__init__(self, field_name, choices=[('1', _('Unknown')), ('2', _('Yes')), ('3', _('No'))], 573 573 is_required=is_required, validator_list=validator_list) 574 574 575 575 def render(self, data):