Skip to content

Commit

Permalink
Forced blank=True for NullBooleanField to allow it to pass model vali…
Browse files Browse the repository at this point in the history
…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
ubernostrum committed Mar 10, 2010
1 parent 1eee402 commit cccd106
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions django/db/models/fields/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit cccd106

Please sign in to comment.