summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2017-01-11 19:01:30 -0500
committerTim Graham <timograham@gmail.com>2017-01-11 19:01:30 -0500
commita4cc622363e40e98f2fce4f0d556745ca5d314e0 (patch)
tree08988010c08a4c16a9cb161291d90038c2d8beb8
parent56c87b51abca51c90cb5f2c10ec2def583bb92ad (diff)
downloaddjango-a4cc622363e40e98f2fce4f0d556745ca5d314e0.tar.gz
Fixed typos in docs/ref/contrib/admin/index.txt
-rw-r--r--docs/ref/contrib/admin/index.txt28
1 files changed, 22 insertions, 6 deletions
diff --git a/docs/ref/contrib/admin/index.txt b/docs/ref/contrib/admin/index.txt
index e30076b487..40acb7dd29 100644
--- a/docs/ref/contrib/admin/index.txt
+++ b/docs/ref/contrib/admin/index.txt
@@ -2808,18 +2808,34 @@ a pattern for your new view.
.. _auth_password_reset:
-Adding a password-reset feature
+Adding a password reset feature
-------------------------------
-You can add a password-reset feature to the admin site by adding a few lines to
+You can add a password reset feature to the admin site by adding a few lines to
your URLconf. Specifically, add these four patterns::
from django.contrib.auth import views as auth_views
- url(r'^admin/password_reset/$', auth_views.PasswordResetView.as_view(), name='admin_password_reset'),
- url(r'^admin/password_reset/done/$', auth_views.PasswordResetDoneView.as_view(), name='password_reset_done'),
- url(r'^reset/(?P<uidb64>[0-9A-Za-z_\-]+)/(?P<token>.+)/$', PasswordResetConfirmView.as_view(), name='password_reset_confirm'),
- url(r'^reset/done/$', auth_views.PasswordResetCompleteView.as_view(), name='password_reset_complete'),
+ url(
+ r'^admin/password_reset/$',
+ auth_views.PasswordResetView.as_view(),
+ name='admin_password_reset',
+ ),
+ url(
+ r'^admin/password_reset/done/$',
+ auth_views.PasswordResetDoneView.as_view(),
+ name='password_reset_done',
+ ),
+ url(
+ r'^reset/(?P<uidb64>[0-9A-Za-z_\-]+)/(?P<token>.+)/$',
+ auth_views.PasswordResetConfirmView.as_view(),
+ name='password_reset_confirm',
+ ),
+ url(
+ r'^reset/done/$',
+ auth_views.PasswordResetCompleteView.as_view(),
+ name='password_reset_complete',
+ ),
(This assumes you've added the admin at ``admin/`` and requires that you put
the URLs starting with ``^admin/`` before the line that includes the admin app