Author: ubernostrum
Date: 2010-03-10 01:41:37 -0600 (Wed, 10 Mar 2010)
New Revision: 12744

Modified:
   django/trunk/django/db/models/fields/__init__.py
Log:
Forced blank=True for NullBooleanField to allow it to pass model validation 
with a value of None. Refs #13071.

Modified: django/trunk/django/db/models/fields/__init__.py
===================================================================
--- django/trunk/django/db/models/fields/__init__.py    2010-03-10 03:41:41 UTC 
(rev 12743)
+++ django/trunk/django/db/models/fields/__init__.py    2010-03-10 07:41:37 UTC 
(rev 12744)
@@ -935,6 +935,7 @@
 
     def __init__(self, *args, **kwargs):
         kwargs['null'] = True
+        kwargs['blank'] = True
         Field.__init__(self, *args, **kwargs)
 
     def get_internal_type(self):

-- 
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.

Reply via email to