def clean_password(self):
if self.data['password'] != self.data['password2']:
raise forms.ValidationError('Passwords are not the same')
return self.data['password']
def clean(self,*args, **kwargs):
self.clean_email()
self.clean_password()
raise forms.ValidationError('UserError')
Заранее спасибо