Skip to content

Commit

Permalink
Fixed a bug in NullBooleanField.to_python.
Browse files Browse the repository at this point in the history
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8684 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information
jacobian committed Aug 28, 2008
1 parent 8d82363 commit fc2978c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion django/db/models/fields/__init__.py
Expand Up @@ -687,7 +687,7 @@ def get_internal_type(self):

def to_python(self, value):
if value in (None, True, False): return value
if value in ('None'): return None
if value in ('None',): return None
if value in ('t', 'True', '1'): return True
if value in ('f', 'False', '0'): return False
raise exceptions.ValidationError(
Expand Down

0 comments on commit fc2978c

Please sign in to comment.