From e07a3a278ed27b95ed7ec53b97d991fad3b33aa6 Mon Sep 17 00:00:00 2001 From: Ian Kelly Date: Sat, 11 Apr 2009 00:06:53 +0000 Subject: [PATCH] Fixed BooleanFields being coerced null=True in Oracle. git-svn-id: http://code.djangoproject.com/svn/django/trunk@10505 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/db/models/fields/__init__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/django/db/models/fields/__init__.py b/django/db/models/fields/__init__.py index 5669530aa5..0c9aa59425 100644 --- a/django/db/models/fields/__init__.py +++ b/django/db/models/fields/__init__.py @@ -370,6 +370,7 @@ class AutoField(Field): return None class BooleanField(Field): + empty_strings_allowed = False def __init__(self, *args, **kwargs): kwargs['blank'] = True if 'default' not in kwargs and not kwargs.get('null'):