# HG changeset patch # User neko259 # Date 2015-05-03 18:15:03 # Node ID ea2f237c7365f203963e633c976d180425e5d091 # Parent 100ccd67faacb90dc948c8bccc6e64f80de371af Don't allow adding multipost to archived threads diff --git a/boards/forms.py b/boards/forms.py --- a/boards/forms.py +++ b/boards/forms.py @@ -212,7 +212,7 @@ class PostForm(NeboardForm): for thread_id in threads_id_list: try: thread = Post.objects.get(id=int(thread_id)) - if not thread.is_opening(): + if not thread.is_opening() or thread.get_thread().archived: raise ObjectDoesNotExist() threads.append(thread) except (ObjectDoesNotExist, ValueError):