def save(self, context): if objects.transition_schema(): self.add_forward_schema_changes() session = db_session.get_session(mysql_traditional_mode=True) with session.begin(): session.merge(self)
def save(self, context): if objects.transition_schema(): self.add_forward_schema_changes() session = SolumBase.get_session() with session.begin(): session.merge(self)