0
0
mirror of https://github.com/django/django.git synced 2024-12-01 15:42:04 +01:00

Fixed BooleanFields being coerced null=True in Oracle.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@10505 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Ian Kelly 2009-04-11 00:06:53 +00:00
parent a34b718192
commit e07a3a278e

View File

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