summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2014-05-28 17:17:58 -0700
committerTim Graham <timograham@gmail.com>2014-05-29 07:52:55 -0400
commitd099c03789cb88e450002ceaf072990b50052995 (patch)
tree9b3b29c97bd5dee0c87066481d29f2c0aece1247
parentce1dd6a7303fefa8020dd35effcfcc5c251e4627 (diff)
[1.7.x] Simplified, very slightly, some code in the oracle backend
Backport of e79725cdf9 from master
-rw-r--r--django/db/backends/oracle/base.py2
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