1
0
mirror of https://github.com/django/django.git synced 2024-12-25 02:26:12 +00:00

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
This commit is contained in:
James Bennett 2010-03-10 07:41:37 +00:00
parent 1eee40234b
commit cccd106289

View File

@ -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):