I have subclassed the view PasswordResetConfirmView because I want to pass 
in my own form, however, I keep getting the following error:

<https://lh3.googleusercontent.com/-7HKlxHnbOvM/WZW8SgoxPFI/AAAAAAAAOyA/k4n-9sUgQP8Syq_VVLeFW3yyosxjpHB5QCLcBGAs/s1600/django_error.JPG>


Sometimes the error reads: get() got an unexpected keyword argument 'token'.

My view looks like this:

class CustomPasswordResetConfirmView(PasswordResetConfirmView):
    form_class = SetPasswordForm

    def get(self, request, token=None, uidb64=None):
        super(CustomPasswordResetConfirmView, self).get(request, token=token, 
uidb64=uidb64)
        return render(request, 'registration/password_reset_confirm.html')


The URL connected to this view is:

url(r'^reset/(?P<uidb64>[0-9A-Za-z_\-]+)/(?P<token>[0-9A-Za-z]{1,13}-[0-9A-Za-z]{1,20})/$',
    views.CustomPasswordResetConfirmView.as_view(), 
name='password_reset_confirm'),



I've tried everything I can think of but I always get the error above.

Any help will be greatly appreciated.

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
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/3b49bbd1-d56f-4f82-8e33-2f1e0b0151d4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to