コード例 #1
0
ファイル: comments.py プロジェクト: pombredanne/turbion
    def _create_comment(self):
        comment = Comment(
            post=self.post,
            text="Foo bar text",
            created_by=self.user
        )
        comment.save()

        return comment
コード例 #2
0
ファイル: moderation.py プロジェクト: pombredanne/turbion
    def _add_comment(self, author):
        comment = Comment(
            created_by=author,
            text="test",
            text_filter="dummy",
            post=self.post
        )
        comment.save()

        return comment