Commit cccd1062 authored by James Bennett's avatar James Bennett
Browse files

Forced blank=True for NullBooleanField to allow it to pass model validation...

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
parent 1eee4023
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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):