diff options
| author | Jannis Leidel <jannis@leidel.info> | 2011-04-30 13:37:53 +0000 |
|---|---|---|
| committer | Jannis Leidel <jannis@leidel.info> | 2011-04-30 13:37:53 +0000 |
| commit | b44757ce5187fd7019593b838adfd81dfd401b1d (patch) | |
| tree | 659b4378a0cc36a985dec38fc752163b275af292 /docs | |
| parent | c05dd20fa5896ac9e983415a60ce13fb0f028dc0 (diff) | |
[1.3.X] Fixed #6581 -- Moved documentation of django.contrib.auth.views.redirect_to_login to an own "Helper functions" section.
Backport form trunk (r16130).
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.3.X@16131 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/topics/auth.txt | 42 |
1 files changed, 23 insertions, 19 deletions
diff --git a/docs/topics/auth.txt b/docs/topics/auth.txt index 52ddf22e7b..2106c16add 100644 --- a/docs/topics/auth.txt +++ b/docs/topics/auth.txt @@ -990,25 +990,6 @@ includes a few other useful built-in views located in default to :file:`registration/password_reset_done.html` if not supplied. -.. function:: redirect_to_login(next[, login_url, redirect_field_name]) - - Redirects to the login page, and then back to another URL after a - successful login. - - **Required arguments:** - - * ``next``: The URL to redirect to after a successful login. - - **Optional arguments:** - - * ``login_url``: The URL of the login page to redirect to. This will - default to :setting:`settings.LOGIN_URL <LOGIN_URL>` if not supplied. - - * ``redirect_field_name``: The name of a ``GET`` field containing the - URL to redirect to after log out. Overrides ``next`` if the given - ``GET`` parameter is passed. - - .. function:: password_reset_confirm(request[, uidb36, token, template_name, token_generator, set_password_form, post_reset_redirect]) Presents a form for entering a new password. @@ -1038,6 +1019,29 @@ includes a few other useful built-in views located in * ``template_name``: The full name of a template to display the view. This will default to :file:`registration/password_reset_complete.html`. +Helper functions +---------------- + +.. module:: django.contrib.auth.views + +.. function:: redirect_to_login(next[, login_url, redirect_field_name]) + + Redirects to the login page, and then back to another URL after a + successful login. + + **Required arguments:** + + * ``next``: The URL to redirect to after a successful login. + + **Optional arguments:** + + * ``login_url``: The URL of the login page to redirect to. This will + default to :setting:`settings.LOGIN_URL <LOGIN_URL>` if not supplied. + + * ``redirect_field_name``: The name of a ``GET`` field containing the + URL to redirect to after log out. Overrides ``next`` if the given + ``GET`` parameter is passed. + Built-in forms -------------- |
