

def soft_delete(self, session):
    'Mark this object as deleted.'
    self.deleted = self.id
    self.deleted_at = timeutils.utcnow()
    self.save(session=session)

dataset/ETHPy150Open openstack/rack/rack/openstack/common/db/sqlalchemy/models.py SoftDeleteMixin.soft_delete/original