diff --git a/boards/views/all_threads.py b/boards/views/all_threads.py --- a/boards/views/all_threads.py +++ b/boards/views/all_threads.py @@ -1,6 +1,6 @@ from django.core.paginator import EmptyPage from django.http import Http404 -from django.shortcuts import render +from django.shortcuts import render, redirect from django.urls import reverse from django.utils.decorators import method_decorator from django.views.decorators.csrf import csrf_protect @@ -92,7 +92,7 @@ class AllThreadsView(BaseBoardView, Pagi if PARAMETER_METHOD in request.POST: self.dispatch_method(request) - return self.get_reverse_url() + return redirect(self.get_reverse_url()) form = ThreadForm(request.POST, request.FILES, error_class=PlainErrorList)