oscarmlage / django-cruds-adminlte

django-cruds is simple drop-in django app that creates CRUD for faster prototyping
BSD 3-Clause "New" or "Revised" License
424 stars 83 forks source link

Fix blank page on 403 (Forbidden) #75

Open Lionqueen94 opened 6 years ago

Lionqueen94 commented 6 years ago

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!