Kaydet (Commit) 496d6515 authored tarafından Adrian Holovaty's avatar Adrian Holovaty

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
üst 15cbc67e
......@@ -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):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment