Bases: object
object
Middleware to redirect PermissionDenied exceptions.
By default, users are redirected to the LOGIN_URL. To change this, set MODEL_PERMISSIONS_REDIRECT_URL in your settings.
LOGIN_URL
MODEL_PERMISSIONS_REDIRECT_URL
Redirect a PermissionDenied exception.