Skip to content

Commit

Permalink
Fixed #3127 -- Added i18n hooks to NullBooleanField. Thanks, automatt…
Browse files Browse the repository at this point in the history
…hias

git-svn-id: http://code.djangoproject.com/svn/django/trunk@4398 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information
adrianholovaty committed Jan 23, 2007
1 parent 7d1b483 commit 2633035
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion django/oldforms/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -569,7 +569,7 @@ class NullBooleanField(SelectField):
"This SelectField provides 'Yes', 'No' and 'Unknown', mapping results to True, False or None"
def __init__(self, field_name, is_required=False, validator_list=None):
if validator_list is None: validator_list = []
SelectField.__init__(self, field_name, choices=[('1', 'Unknown'), ('2', 'Yes'), ('3', 'No')],
SelectField.__init__(self, field_name, choices=[('1', _('Unknown')), ('2', _('Yes')), ('3', _('No'))],
is_required=is_required, validator_list=validator_list)

def render(self, data):
Expand Down

0 comments on commit 2633035

Please sign in to comment.