diff --git a/docs/topics/auth/default.txt b/docs/topics/auth/default.txt index 88703c6023..9606df83db 100644 --- a/docs/topics/auth/default.txt +++ b/docs/topics/auth/default.txt @@ -730,7 +730,7 @@ user to the login page or issue an HTTP 403 Forbidden response. .. attribute:: permission_denied_message When ``raise_exception`` is ``True``, this attribute can be used to - control the error message passed to the error handler for display to + control the error message passed to the error handler for display to the user. Defaults to an empty string. .. attribute:: redirect_field_name @@ -747,8 +747,8 @@ user to the login page or issue an HTTP 403 Forbidden response. .. method:: handle_no_permission() - Depending on the value of ``raise_exception``, the method either raises - a :exc:`~django.core.exceptions.PermissionDenied` exception or + Depending on the value of ``raise_exception``, the method either raises + a :exc:`~django.core.exceptions.PermissionDenied` exception or redirects the user to the ``login_url``, optionally including the ``redirect_field_name`` if it is set.