예제 #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)