mirror of
https://github.com/django/django.git
synced 2025-06-05 11:39:13 +00:00
[1.7.x] Simplified, very slightly, some code in the oracle backend
Backport of e79725cdf9 from master
This commit is contained in:
parent
ce1dd6a730
commit
d099c03789
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user