コード例 #1
0
ファイル: forms.py プロジェクト: nathanhilbert/FPA_Core
    def save(self, user, topic):
        post = Post(content=self.content.data)

        if self.track_topic.data:
            user.track_topic(topic)
        return post.save(user=user, topic=topic)
コード例 #2
0
    def save(self, user, topic):
        post = Post(content=self.content.data)

        if self.track_topic.data:
            user.track_topic(topic)
        return post.save(user=user, topic=topic)
コード例 #3
0
ファイル: forms.py プロジェクト: nathanhilbert/FPA_Core
 def save(self, user, topic):
     post = Post(content=self.content.data)
     return post.save(user=user, topic=topic)
コード例 #4
0
 def save(self, user, topic):
     post = Post(content=self.content.data)
     return post.save(user=user, topic=topic)