Wednesday, September 28, 2011

Re: password_reset_form_save() got an unexpected keyword argument 'request'

On Mon, Sep 26, 2011 at 7:31 PM, Ben O'Day <bpoday@gmail.com> wrote:
I recently upgraded to Django 1.3 (from 1.2) and noticed that our
password reset functionality isn't working.  I do have the templates
customized, but am using the default view/form files for this.
Looking at the django.contrib.auth.views file, I can't see the issue
either (the parameters in the opt dict seem to match the expected
params on the form, etc)

here is my urls.py config...
[snip]

here is the error...any ideas?

Request Method:         POST
Request URL:    http://127.0.0.1:8000/password_reset/
Django Version:         1.3 SVN-16907

So based on this info you are using the latest (or thereabouts) 1.3.X branch, not 1.3 release, right?
 
Exception Type:         TypeError
Exception Value:

password_reset_form_save() got an unexpected keyword argument
'request'

password_reset_form_save() doesn't exist in stock Django code, so this looks a bit odd.

Exception Location:     c:\projects\dasn\django\django\contrib\auth
\views.py in password_reset, line 155

This line is: https://code.djangoproject.com/browser/django/branches/releases/1.3.X/django/contrib/auth/views.py#L155

form.save(**opts)

The message you would get there if opts had an unexpected keyword argument is:

save() got an unexpected keyword argument 'request'

It looks to me like you have something custom in the Django code -- where is that password_reset_form_save function coming from? (It also doesn't appear that passing request to the password reset form is new in 1.3.)

Karen
--
http://tracey.org/kmt/

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

No comments:

Post a Comment