From cccd106289c409c0aa82bf9e37912abbc195d3f1 Mon Sep 17 00:00:00 2001 From: James Bennett Date: Wed, 10 Mar 2010 07:41:37 +0000 Subject: [PATCH] Forced blank=True for NullBooleanField to allow it to pass model validation with a value of None. Refs #13071. git-svn-id: http://code.djangoproject.com/svn/django/trunk@12744 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/db/models/fields/__init__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/django/db/models/fields/__init__.py b/django/db/models/fields/__init__.py index 898f73e614..260f345fff 100644 --- a/django/db/models/fields/__init__.py +++ b/django/db/models/fields/__init__.py @@ -935,6 +935,7 @@ class NullBooleanField(Field): def __init__(self, *args, **kwargs): kwargs['null'] = True + kwargs['blank'] = True Field.__init__(self, *args, **kwargs) def get_internal_type(self):