django-cruds-adminlte
django-cruds-adminlte copied to clipboard
Fix blank page on 403 (Forbidden)
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!