From e79725cdf90e3271626ed66f70b63640d3fcc521 Mon Sep 17 00:00:00 2001 From: Alex Gaynor Date: Wed, 28 May 2014 17:17:58 -0700 Subject: [PATCH] Simplified, very slightly, some code in the oracle backend --- django/db/backends/oracle/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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