Verified Commit 00bd60ef authored by Sli's avatar Sli
Browse files

django2.2: add exception parameter in forbidden and not_found views

parent b8c7fb6f
......@@ -48,7 +48,7 @@ from core.models import Group
from core.views.forms import LoginForm
def forbidden(request):
def forbidden(request, exception):
return HttpResponseForbidden(
......@@ -71,7 +71,7 @@ def forbidden(request):
def not_found(request):
def not_found(request, exception):
return HttpResponseNotFound(render(request, "core/404.jinja"))
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment