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.
Source:stackexchange.com