Better right handling in files

This commit is contained in:
Skia
2016-08-10 14:48:18 +02:00
parent 1775569ecf
commit 830c15a585
7 changed files with 32 additions and 32 deletions

View File

@ -9,7 +9,7 @@ from core.models import Group
def forbidden(request):
return HttpResponseForbidden(render(request, "core/403.jinja", context={'next': request.path, 'form':
AuthenticationForm()}))
AuthenticationForm(), 'popup': request.resolver_match.kwargs['popup'] or ""}))
def not_found(request):
return HttpResponseNotFound(render(request, "core/404.jinja"))