Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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
  • Loading branch information...
commit 496d65154626e674d4a3a5aea167a44b764ab0d2 1 parent 15cbc67
@adrianholovaty adrianholovaty authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  django/forms/__init__.py
View
2  django/forms/__init__.py
@@ -571,7 +571,7 @@ def render(self, data):
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):

0 comments on commit 496d651

Please sign in to comment.
Something went wrong with that request. Please try again.