Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
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...
commit cccd106289c409c0aa82bf9e37912abbc195d3f1 1 parent 1eee402
@ubernostrum ubernostrum authored
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):
Please sign in to comment.
Something went wrong with that request. Please try again.