mirror of
https://github.com/django/django.git
synced 2024-12-23 01:25:58 +00:00
Simplified, very slightly, some code in the oracle backend
This commit is contained in:
parent
61185bba72
commit
e79725cdf9
@ -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…
Reference in New Issue
Block a user