Author: jacob
Date: 2008-08-28 16:23:21 -0500 (Thu, 28 Aug 2008)
New Revision: 8684
Modified:
django/trunk/django/db/models/fields/__init__.py
Log:
Fixed a bug in `NullBooleanField.to_python`.
Modified: django/trunk/django/db/models/fields/__init__.py
===================================================================
--- django/trunk/django/db/models/fields/__init__.py 2008-08-28 21:02:05 UTC
(rev 8683)
+++ django/trunk/django/db/models/fields/__init__.py 2008-08-28 21:23:21 UTC
(rev 8684)
@@ -687,7 +687,7 @@
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(
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---