'DBMS-specific value alterations (this really works around
missing functionality in Django backends)'

def _default_value_workaround(self, value):

    if (isinstance(value, bool) and (not self.has_booleans)):
        return int(value)
    else:
        return value
