From 6474092e9a55af5e5096bf934e17fe6371181cf0 Mon Sep 17 00:00:00 2001
From: Jacob Kaplan-Moss <jacob@jacobian.org>
Date: Wed, 1 Apr 2009 14:45:39 +0000
Subject: [PATCH] Fixed a bug introduced by [10316].

git-svn-id: http://code.djangoproject.com/svn/django/trunk@10319 bcc190cf-cafb-0310-a4f2-bffc1f526a37
---
 django/forms/widgets.py | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/django/forms/widgets.py b/django/forms/widgets.py
index 098fcf75aa..e25f619c3c 100644
--- a/django/forms/widgets.py
+++ b/django/forms/widgets.py
@@ -422,7 +422,12 @@ class NullBooleanSelect(Select):
 
     def value_from_datadict(self, data, files, name):
         value = data.get(name, None)
-        return {u'2': True, u'3': False, 'True': True, 'False': False}.get(value, None)
+        return {u'2': True, 
+                True: True, 
+                'True': True, 
+                u'3': False, 
+                'False': False, 
+                False: False}.get(value, None)
 
     def _has_changed(self, initial, data):
         # Sometimes data or initial could be None or u'' which should be the