From 5e8eef19dc78baeaed7d324e1767e8bf2b2bc387 Mon Sep 17 00:00:00 2001 From: Boulder Sprinters Date: Wed, 6 Jun 2007 20:48:52 +0000 Subject: [PATCH] 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 --- 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 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)