The success_url of PasswordChangeView (actually the behavior comes from the 
inherited FormView) only accepts a URL, not a URL name. You can update to 
your code like this: 

from django.urls import reverse_lazy
...
success_url=reverse_lazy('lori:pwd_done')

On Thursday, July 13, 2017 at 11:44:43 AM UTC-4, Carsten Fuchs wrote:
>
> Am 13.07.2017 um 16:56 schrieb Carsten Fuchs: 
> > the   success_url='lori:pwd_done'   seems to be a problem 
>
> This seems to be the root also of the original problem 
> (SuspiciousOperation…): 
> If I insert a plain URL, e.g. success_url='/pwd_done/', then I can no 
> longer 
> reproduce the original problem either. 
>
> Best regards, 
> Carsten 
>

-- 
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/dbc3d0cd-2ae1-4a31-878b-b8ba9ac71ad0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to