Browse Source

Sync merged thread only only

Rafał Pitoń 10 years ago
parent
commit
78cb2babf4

+ 0 - 2
misago/threads/moderation/threads.py

@@ -91,8 +91,6 @@ def merge_thread(user, thread, other_thread):
     })
     })
 
 
     thread.merge(other_thread)
     thread.merge(other_thread)
-    thread.synchronize()
-    thread.save()
     other_thread.delete()
     other_thread.delete()
     return True
     return True
 
 

+ 3 - 0
misago/threads/views/generic/forum/actions.py

@@ -255,6 +255,9 @@ class ForumActions(Actions):
                         moderation.merge_thread(
                         moderation.merge_thread(
                             request.user, merged_thread, thread)
                             request.user, merged_thread, thread)
 
 
+                    merged_thread.synchronize()
+                    merged_thread.save()
+
                 with atomic():
                 with atomic():
                     self.forum.synchronize()
                     self.forum.synchronize()
                     self.forum.save()
                     self.forum.save()