コード例 #1
0
    def move(self, new_thread):
        from misago.threads.signals import move_post

        if self.is_best_answer:
            self.thread.clear_best_answer()

        self.category = new_thread.category
        self.thread = new_thread
        move_post.send(sender=self)
コード例 #2
0
    def move(self, new_thread):
        from misago.threads.signals import move_post

        self.forum = new_thread.forum
        self.thread = new_thread
        move_post.send(sender=self)
コード例 #3
0
ファイル: post.py プロジェクト: Didan/Misago
    def move(self, new_thread):
        from misago.threads.signals import move_post

        self.category = new_thread.category
        self.thread = new_thread
        move_post.send(sender=self)
コード例 #4
0
ファイル: post.py プロジェクト: Python3pkg/Misago
    def move(self, new_thread):
        from misago.threads.signals import move_post

        self.category = new_thread.category
        self.thread = new_thread
        move_post.send(sender=self)
コード例 #5
0
ファイル: models.py プロジェクト: tylercole/Misago
 def move_to(self, thread):
     move_post.send(sender=self, move_to=thread)
     self.thread = thread
     self.forum = thread.forum