Show More
@@ -1,6 +1,6 b'' | |||
|
1 | 1 | from django.core.paginator import EmptyPage |
|
2 | 2 | from django.http import Http404 |
|
3 | from django.shortcuts import render | |
|
3 | from django.shortcuts import render, redirect | |
|
4 | 4 | from django.urls import reverse |
|
5 | 5 | from django.utils.decorators import method_decorator |
|
6 | 6 | from django.views.decorators.csrf import csrf_protect |
@@ -92,7 +92,7 b' class AllThreadsView(BaseBoardView, Pagi' | |||
|
92 | 92 | if PARAMETER_METHOD in request.POST: |
|
93 | 93 | self.dispatch_method(request) |
|
94 | 94 | |
|
95 | return self.get_reverse_url() | |
|
95 | return redirect(self.get_reverse_url()) | |
|
96 | 96 | |
|
97 | 97 | form = ThreadForm(request.POST, request.FILES, |
|
98 | 98 | error_class=PlainErrorList) |
General Comments 0
You need to be logged in to leave comments.
Login now