Sunday, April 21, 2013

password_change redirect to user profile page

Hi,

I have the following urlConf for password change:

 url(r'^users/(?P<pk>\d+)/$', UserProfile.as_view(), name='user_profile'),
 url(r'^password_change/$', auth_views.password_change, name='password_change'),

I can't figure out to redirect to the user profile page by using post_change_redirect?

Do I have to create an intermediate view and then do another HttpResponseRedirect in that view?

Thanks!



--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate