diff options
| author | Alex Gaynor <alex.gaynor@gmail.com> | 2014-05-28 17:17:58 -0700 |
|---|---|---|
| committer | Alex Gaynor <alex.gaynor@gmail.com> | 2014-05-28 17:17:58 -0700 |
| commit | e79725cdf90e3271626ed66f70b63640d3fcc521 (patch) | |
| tree | a33690a673c61897e1de676354510e4d38b7356e | |
| parent | 61185bba72dbb13e4f5f233f6be790957a57914c (diff) | |
Simplified, very slightly, some code in the oracle backend
| -rw-r--r-- | django/db/backends/oracle/base.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/django/db/backends/oracle/base.py b/django/db/backends/oracle/base.py index d46e770437..de264a7b5b 100644 --- a/django/db/backends/oracle/base.py +++ b/django/db/backends/oracle/base.py @@ -260,7 +260,7 @@ WHEN (new.%(col_name)s IS NULL) # empty string. if value is None and field and field.empty_strings_allowed: if field.get_internal_type() == 'BinaryField': - value = bytes() # same as '' on PY2 but different on PY3 + value = b'' else: value = '' # Convert 1 or 0 to True or False |
