# HG changeset patch # User neko259 # Date 2017-12-18 13:38:43 # Node ID 5a2e843cde8e3bf52d7f57a2ef10af493f4d0c7f # Parent ea0ce803f3c97d840c3eb8e1af15d2c6d2e1d101 Fixed toggling "only favorite tags" setting 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)