changeset 76:eecbd00e092a

#25 Fix problem with redirect after changing password.
author Brian Neal <bgneal@gmail.com>
date Fri, 10 Jul 2009 23:50:06 +0000
parents 374b24dd2f9a
children d5eed0a91a05
files gpp/accounts/urls.py
diffstat 1 files changed, 2 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/gpp/accounts/urls.py	Sun Jul 05 00:03:40 2009 +0000
+++ b/gpp/accounts/urls.py	Fri Jul 10 23:50:06 2009 +0000
@@ -1,5 +1,6 @@
 """urls for the accounts application"""
 from django.conf.urls.defaults import *
+from django.conf import settings
 
 urlpatterns = patterns('accounts.views',
     url(r'^register/$', 'register', name='accounts-register'),
@@ -19,8 +20,6 @@
     (r'^password/', 
         'django.contrib.auth.views.password_change', 
         {'template_name': 'accounts/password_change.html',
-         'post_change_redirect': '/accounts/profile/'}),
+         'post_change_redirect': settings.LOGIN_REDIRECT_URL}),
 )
 
-
-# vim: ts=4 sw=4