Skip to content
Browse files

Fixed a bug introduced by [10316].

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent ee17cab commit 6474092e9a55af5e5096bf934e17fe6371181cf0 @jacobian jacobian committed
Showing with 6 additions and 1 deletion.
  1. +6 −1 django/forms/
7 django/forms/
@@ -422,7 +422,12 @@ def render(self, name, value, attrs=None, choices=()):
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

0 comments on commit 6474092

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