[Answer]-Error when update password in extending user models. Why and how to fix it ?

1👍

So your EmailForm is returning a UserProfile model instance, and there is no function on UserProfile called set_password. I am guessing you actually want to do:

email.user.set_password(user_profile.password_email)

as the Django auth.User model does contain the set_password function.

👤vishen

Leave a comment