def to_database(self, value):
        if value is None and self.has_default:
            return self.get_default()
        return value
Converts python value into database value
dataset/ETHPy150Open datastax/python-driver/cassandra/cqlengine/columns.py/Column.to_database