Commit 7dfd7cb8 authored by Russell Keith-Magee's avatar Russell Keith-Magee
Browse files

Fixed #10864 -- Clarified the role played by redirect_to_field in the...

Fixed #10864 -- Clarified the role played by redirect_to_field in the login_required auth decorator. Thanks to trigeek38 for the suggestion, and SmileyChris for the draft.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@11544 bcc190cf-cafb-0310-a4f2-bffc1f526a37
parent ec6b9d6e
Loading
Loading
Loading
Loading
+16 −14
Original line number Diff line number Diff line
@@ -689,8 +689,10 @@ The login_required decorator

        * If the user isn't logged in, redirect to
          :setting:`settings.LOGIN_URL <LOGIN_URL>` (``/accounts/login/`` by
          default), passing the current absolute URL in the query string as
          ``next`` or the value of ``redirect_field_name``. For example:
          default), passing the current absolute URL in the query string. The
          name of the GET argument is determined by the ``redirect_field_name``
          argument provided to the decorator. The default argument name is
          ``next``. For example:
          ``/accounts/login/?next=/polls/3/``.

        * If the user is logged in, execute the view normally. The view code is