Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def clean(self):
- super(forms.Form, self).clean()
- if 'password' in self.cleaned_data and 'password_confirm' in self.cleaned_data:
- if self.cleaned_data['password'] != self.cleaned_data['password_confirm']:
- self._errors['password'] = [u'Пароли не совпадают']
- self._errors['password_confirm'] = [u'Пароли не совпадают']
- return self.cleaned_data
Add Comment
Please, Sign In to add comment