Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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
Adrian Holovaty authored June 20, 2006

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  django/forms/__init__.py
2  django/forms/__init__.py
@@ -571,7 +571,7 @@ def render(self, data):
571 571
         return SelectField.render(self, data)
572 572
 
573 573
     def html2python(data):
574  
-        return {'1': None, '2': True, '3': False}[data]
  574
+        return {None: None, '1': None, '2': True, '3': False}[data]
575 575
     html2python = staticmethod(html2python)
576 576
 
577 577
 class SelectMultipleField(SelectField):

0 notes on commit 496d651

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