Permalink
Browse files

Forced blank=True for NullBooleanField to allow it to pass model vali…

…dation with a value of None. Refs #13071.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@12744 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent 1eee402 commit cccd106289c409c0aa82bf9e37912abbc195d3f1 @ubernostrum ubernostrum committed Mar 10, 2010
Showing with 1 addition and 0 deletions.
  1. +1 −0 django/db/models/fields/__init__.py
View
1 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):

0 comments on commit cccd106

Please sign in to comment.