[damned-lies] Added names to password reset urls



commit d7e4456022942171a200dab2ff9b7b26d30dd45b
Author: Claude Paroz <claude 2xlibre net>
Date:   Sat Apr 18 23:48:15 2015 +0200

    Added names to password reset urls

 damnedlies/urls.py |   12 ++++++++----
 1 files changed, 8 insertions(+), 4 deletions(-)
---
diff --git a/damnedlies/urls.py b/damnedlies/urls.py
index 88b0bd9..5e2aa30 100644
--- a/damnedlies/urls.py
+++ b/damnedlies/urls.py
@@ -38,17 +38,21 @@ urlpatterns = patterns('',
     url(
         regex = r'^password_reset/$',
         view = 'django.contrib.auth.views.password_reset',
-        kwargs = {'template_name':'registration/password_reset_form.html'}),
+        kwargs = {'template_name':'registration/password_reset_form.html'},
+        name='password_reset'),
     url(
         regex = r'^password_reset/done/$',
         view = 'django.contrib.auth.views.password_reset_done',
-        kwargs = {'template_name':'registration/password_reset_done.html'}),
+        kwargs = {'template_name':'registration/password_reset_done.html'},
+        name='password_reset_done'),
     url(
         regex = r'^reset/(?P<uidb36>[0-9A-Za-z]+)-(?P<token>.+)/$',
-        view = 'django.contrib.auth.views.password_reset_confirm'),
+        view = 'django.contrib.auth.views.password_reset_confirm',
+        name='password_reset_confirm'),
     url(
         regex = r'^reset/done/$',
-        view = 'django.contrib.auth.views.password_reset_complete'),
+        view = 'django.contrib.auth.views.password_reset_complete',
+        name='password_reset_complete'),
     url(r'^teams/', include('teams.urls')),
     url(r'^people/', include('people.urls')),
     url(# users is the hardcoded url in the contrib.auth User class, making it identical to /people


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]