Fixed #2190 -- Now allowing NullBooleanField to be given None

git-svn-id: http://code.djangoproject.com/svn/django/trunk@3161 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Adrian Holovaty 2006-06-20 03:06:14 +00:00
parent 15cbc67ea2
commit 496d651546
1 changed files with 1 additions and 1 deletions

View File

@ -571,7 +571,7 @@ class NullBooleanField(SelectField):
return SelectField.render(self, data)
def html2python(data):
return {'1': None, '2': True, '3': False}[data]
return {None: None, '1': None, '2': True, '3': False}[data]
html2python = staticmethod(html2python)
class SelectMultipleField(SelectField):