diff options
author | Boulder Sprinters <boulder-sprinters@djangoproject.com> | 2007-06-06 20:48:52 +0000 |
---|---|---|
committer | Boulder Sprinters <boulder-sprinters@djangoproject.com> | 2007-06-06 20:48:52 +0000 |
commit | 5e8eef19dc78baeaed7d324e1767e8bf2b2bc387 (patch) | |
tree | 3009a4552a716a786f475b482de8c07caaf145eb /django/db | |
parent | 0248dfd3757e485bf80dcd1befb90e7a283fbb7f (diff) | |
download | django-5e8eef19dc78baeaed7d324e1767e8bf2b2bc387.tar.gz |
boulder-oracle-sprint: Changed NullBooleanField.allows_empty_string from
inherited value of True to False. This allows Django to correctly choose
a default value of None rather than "" when the Oracle backend is used,
as well as being generally sensible.
git-svn-id: http://code.djangoproject.com/svn/django/branches/boulder-oracle-sprint@5428 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'django/db')
-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 61ae393bf6..016e26099b 100644 --- a/django/db/models/fields/__init__.py +++ b/django/db/models/fields/__init__.py @@ -811,6 +811,7 @@ class IPAddressField(Field): validators.isValidIPAddress4(field_data, None) class NullBooleanField(Field): + empty_strings_allowed = False def __init__(self, *args, **kwargs): kwargs['null'] = True Field.__init__(self, *args, **kwargs) |