Kaydet (Commit) e79725cd authored tarafından Alex Gaynor's avatar Alex Gaynor

Simplified, very slightly, some code in the oracle backend

üst 61185bba
...@@ -260,7 +260,7 @@ WHEN (new.%(col_name)s IS NULL) ...@@ -260,7 +260,7 @@ WHEN (new.%(col_name)s IS NULL)
# empty string. # empty string.
if value is None and field and field.empty_strings_allowed: if value is None and field and field.empty_strings_allowed:
if field.get_internal_type() == 'BinaryField': if field.get_internal_type() == 'BinaryField':
value = bytes() # same as '' on PY2 but different on PY3 value = b''
else: else:
value = '' value = ''
# Convert 1 or 0 to True or False # Convert 1 or 0 to True or False
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment