mirror of
https://github.com/django/django.git
synced 2025-07-04 09:49:12 +00:00
boulder-oracle-sprint: Added an ugly hack so that Oracle returns a default 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
This commit is contained in:
parent
2e7702c745
commit
0248dfd375
@ -206,7 +206,7 @@ class Field(object):
|
||||
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 ""
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user