diff options
| author | Jacob Kaplan-Moss <jacob@jacobian.org> | 2008-08-28 21:23:21 +0000 |
|---|---|---|
| committer | Jacob Kaplan-Moss <jacob@jacobian.org> | 2008-08-28 21:23:21 +0000 |
| commit | fc2978cc45f0fe6d596e7043dc41f4a0b56613bb (patch) | |
| tree | 68f0a8a3d36032d689df4164d89a9f3a78021931 | |
| parent | 8d8236385f278410e38bd53538e7c53c377c4a38 (diff) | |
Fixed a bug in `NullBooleanField.to_python`.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8684 bcc190cf-cafb-0310-a4f2-bffc1f526a37
| -rw-r--r-- | django/db/models/fields/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/django/db/models/fields/__init__.py b/django/db/models/fields/__init__.py index 26f83158b8..d4f3c6f344 100644 --- a/django/db/models/fields/__init__.py +++ b/django/db/models/fields/__init__.py @@ -687,7 +687,7 @@ class NullBooleanField(Field): 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( |
