Rafał Pitoń 10 лет назад
Родитель
Сommit
54fec253f3
1 измененных файлов с 3 добавлено и 3 удалено
  1. 3 3
      misago/threads/views/generic/forum/actions.py

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

@@ -366,9 +366,9 @@ class ForumActions(Actions):
 
     def action_delete(self, request, threads):
         changed_threads = 0
-            for thread in threads:
-                if moderation.delete_thread(request.user, thread):
-                    changed_threads += 1
+        for thread in threads:
+            if moderation.delete_thread(request.user, thread):
+                changed_threads += 1
 
         if changed_threads:
             with atomic():