コード例 #1
0
ファイル: forms.py プロジェクト: nathanhilbert/FPA_Core
    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()
コード例 #2
0
    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()
コード例 #3
0
ファイル: forms.py プロジェクト: nathanhilbert/FPA_Core
 def save(self):
     data = self.data
     # remove the button
     data.pop('submit', None)
     forum = Forum(**data)
     return forum.save()
コード例 #4
0
 def save(self):
     data = self.data
     # remove the button
     data.pop('submit', None)
     forum = Forum(**data)
     return forum.save()