Permalink
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...
1 parent 2e7702c commit 0248dfd3757e485bf80dcd1befb90e7a283fbb7f Boulder Sprinters committed Jun 5, 2007
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 ""

0 comments on commit 0248dfd

Please sign in to comment.