There is one return HttpResponseForbidden() in crud.py.
This just gives a blank page instead of an actual error page.
Could this be changed to either:
return HttpResponseForbidden(render(request, '403.html'))
or:
raise PermissionDenied
To use the django 403.html template or a custom one.
Hi there,
There is one
return HttpResponseForbidden()
in crud.py. This just gives a blank page instead of an actual error page. Could this be changed to either:return HttpResponseForbidden(render(request, '403.html'))
or:raise PermissionDenied
To use the django 403.html template or a custom one.Thanks!