Commit e79725cd authored by Alex Gaynor's avatar Alex Gaynor
Browse files

Simplified, very slightly, some code in the oracle backend

parent 61185bba
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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