def save(self): data = self.data # remove the button data.pop('submit', None) forum = Forum(**data) # flush SQLA info from created instance so that it can be merged make_transient(forum) make_transient_to_detached(forum) return forum.save()
def save(self): data = self.data # remove the button data.pop('submit', None) forum = Forum(**data) return forum.save()