summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorRamiro Morales <cramm0@gmail.com>2011-09-24 19:48:27 +0000
committerRamiro Morales <cramm0@gmail.com>2011-09-24 19:48:27 +0000
commit4c457bca85b5410c47860ee4c5df0b47d48f2603 (patch)
tree84e8f5f777a4d14f67bbbab9c97423729437fe46 /docs
parentce9e3b4e9753f9b3bf2e5d8677dfbbabb0c6e33f (diff)
Fixed #16789 -- Added names to URLs in convenience contrib.auth urls.py.
Thanks wim AT go2people DOT nl for the report, cmheisel for the patch and fcurella for reviewing it. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16901 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs')
-rw-r--r--docs/topics/auth.txt24
1 files changed, 24 insertions, 0 deletions
diff --git a/docs/topics/auth.txt b/docs/topics/auth.txt
index ed47b24abc..ecbc2f2bd1 100644
--- a/docs/topics/auth.txt
+++ b/docs/topics/auth.txt
@@ -823,6 +823,11 @@ The login_required decorator
.. function:: views.login(request, [template_name, redirect_field_name, authentication_form])
+ **URL name:** ``login``
+
+ See :doc:`the URL documentation </topics/http/urls>` for details on using
+ named URL patterns.
+
Here's what ``django.contrib.auth.views.login`` does:
* If called via ``GET``, it displays a login form that POSTs to the
@@ -938,6 +943,11 @@ includes a few other useful built-in views located in
Logs a user out.
+ **URL name:** ``logout``
+
+ See :doc:`the URL documentation </topics/http/urls>` for details on using
+ named URL patterns.
+
**Optional arguments:**
* ``next_page``: The URL to redirect to after logout.
@@ -970,6 +980,8 @@ includes a few other useful built-in views located in
Logs a user out, then redirects to the login page.
+ **URL name:** No default URL provided
+
**Optional arguments:**
* ``login_url``: The URL of the login page to redirect to.
@@ -979,6 +991,8 @@ includes a few other useful built-in views located in
Allows a user to change their password.
+ **URL name:** ``password_change``
+
**Optional arguments:**
* ``template_name``: The full name of a template to use for
@@ -1003,6 +1017,8 @@ includes a few other useful built-in views located in
The page shown after a user has changed their password.
+ **URL name:** ``password_change_done``
+
**Optional arguments:**
* ``template_name``: The full name of a template to use.
@@ -1024,6 +1040,8 @@ includes a few other useful built-in views located in
will not be able to request a password reset to prevent misuse
when using an external authentication source like LDAP.
+ **URL name:** ``password_reset``
+
**Optional arguments:**
* ``template_name``: The full name of a template to use for
@@ -1099,6 +1117,8 @@ includes a few other useful built-in views located in
password. This view is called by default if the :func:`password_reset` view
doesn't have an explicit ``post_reset_redirect`` URL set.
+ **URL name:** ``password_reset_done``
+
**Optional arguments:**
* ``template_name``: The full name of a template to use.
@@ -1109,6 +1129,8 @@ includes a few other useful built-in views located in
Presents a form for entering a new password.
+ **URL name:** ``password_reset_confirm``
+
**Optional arguments:**
* ``uidb36``: The user's id encoded in base 36. Defaults to ``None``.
@@ -1142,6 +1164,8 @@ includes a few other useful built-in views located in
Presents a view which informs the user that the password has been
successfully changed.
+ **URL name:** ``password_reset_complete``
+
**Optional arguments:**
* ``template_name``: The full name of a template to display the view.