diff options
| author | James Bennett <ubernostrum@gmail.com> | 2010-03-10 07:41:37 +0000 |
|---|---|---|
| committer | James Bennett <ubernostrum@gmail.com> | 2010-03-10 07:41:37 +0000 |
| commit | cccd106289c409c0aa82bf9e37912abbc195d3f1 (patch) | |
| tree | cda0455a6c3dd82cbef21fceeba4b53ffd6c90a6 | |
| parent | 1eee40234b8366617fa3455cd7c4d16f754fe830 (diff) | |
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
| -rw-r--r-- | django/db/models/fields/__init__.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/django/db/models/fields/__init__.py b/django/db/models/fields/__init__.py index 898f73e614..260f345fff 100644 --- a/django/db/models/fields/__init__.py +++ b/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): |
