コード例 #1
0
    def merge(self, other_thread):
        if self.pk == other_thread.pk:
            raise ValueError("thread can't be merged with itself")

        from misago.threads.signals import merge_thread
        merge_thread.send(sender=self, other_thread=other_thread)
コード例 #2
0
ファイル: models.py プロジェクト: tylercole/Misago
 def merge_with(self, thread, merge):
     merge_thread.send(sender=self, new_thread=thread, merge=merge)