I have this:
def clean_password(self):
user = super(UpdatePassword, self)
valid = self.user.check_password(self.cleaned_data['password'])
if not valid:
raise forms.ValidationError("Password Incorrect")
And I get this error
File "/mnt/d/adnewbies/website/forms.py", line 58, in clean_password
valid = self.user.check_password(self.cleaned_data['password'])
AttributeError: 'UpdatePassword' object has no attribute 'user'