Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

boulder-oracle-sprint: Added an ugly hack so that Oracle returns a de…

…fault Field value of "" instead of None as appropriate.

git-svn-id: http://code.djangoproject.com/svn/django/branches/boulder-oracle-sprint@5427 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 0248dfd3757e485bf80dcd1befb90e7a283fbb7f 1 parent 2e7702c
Boulder Sprinters authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  django/db/models/fields/__init__.py
View
2  django/db/models/fields/__init__.py
@@ -206,7 +206,7 @@ def get_default(self):
if callable(self.default):
return self.default()
return self.default
- if not self.empty_strings_allowed or self.null:
+ if not self.empty_strings_allowed or (self.null and settings.DATABASE_ENGINE != 'oracle'):
return None
return ""
Please sign in to comment.
Something went wrong with that request. Please try again.