diff options
author | Michael Elkins <melkins@tislabs.com> | 2014-12-09 22:18:50 +0000 |
---|---|---|
committer | Michael Elkins <melkins@tislabs.com> | 2014-12-09 22:18:50 +0000 |
commit | d7e93de9e5dd70615e5429c28a3a748e17ef58f4 (patch) | |
tree | f9dea92ae62233ab3f80db825a7c67206df90b7d | |
parent | cb8308e2fd1292e09bb523115180e2d9165012d0 (diff) |
set the URL name on the various password reset URLs as the code uses the name rather than the Python module name to look up the URL via reverse(). closes #739
svn path=/trunk/; revision=6039
-rw-r--r-- | rpki/gui/app/urls.py | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/rpki/gui/app/urls.py b/rpki/gui/app/urls.py index f595ea8f..81c9b127 100644 --- a/rpki/gui/app/urls.py +++ b/rpki/gui/app/urls.py @@ -88,12 +88,14 @@ urlpatterns = patterns( #{'post_reset_redirect' : '/user/password/reset/done/'}, {'extra_context': {'form_title': 'Password Reset'}}, name="password_reset"), - (r'^user/password/reset/done/$', - 'django.contrib.auth.views.password_reset_done'), + url(r'^user/password/reset/done/$', + 'django.contrib.auth.views.password_reset_done', + name='password_reset_done'), url(r'^user/password/reset/(?P<uidb36>[0-9A-Za-z]+)-(?P<token>.+)/$', 'django.contrib.auth.views.password_reset_confirm', #{'post_reset_redirect' : '/user/password/done/'}, name="password_reset_confirm"), - (r'^user/password/done/$', - 'django.contrib.auth.views.password_reset_complete'), + url(r'^user/password/done/$', + 'django.contrib.auth.views.password_reset_complete', + name='password_reset_complete'), ) |