1
0
mirror of https://github.com/django/django.git synced 2025-07-18 16:49:13 +00:00

[1.0.X] Fixed BooleanFields being coerced null=True in Oracle. Backport of r10505 from trunk.

git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@10763 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Ian Kelly 2009-05-13 17:11:18 +00:00
parent cccfeaaa18
commit 68033811ee

View File

@ -362,6 +362,7 @@ class AutoField(Field):
return None return None
class BooleanField(Field): class BooleanField(Field):
empty_strings_allowed = False
def __init__(self, *args, **kwargs): def __init__(self, *args, **kwargs):
kwargs['blank'] = True kwargs['blank'] = True
if 'default' not in kwargs and not kwargs.get('null'): if 'default' not in kwargs and not kwargs.get('null'):