Commits

Anonymous committed 4c3f998

boulder-oracle-sprint: Added an ugly hack so that Oracle returns a default Field value of "" instead of None as appropriate.

  • Participants
  • Parent commits af47f1f
  • Branches boulder-oracle-sprint

Comments (0)

Files changed (1)

django/db/models/fields/__init__.py

             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 ""