Skip to content


Subversion checkout URL

You can clone with
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: 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/
2  django/db/models/fields/
@@ -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.
Something went wrong with that request. Please try again.