0.8.30 fix registration form
This commit is contained in:
@@ -31,6 +31,9 @@ class RegistrationForm(forms.Form):
|
||||
|
||||
def clean(self):
|
||||
cleaned_data = super().clean()
|
||||
for name, val in cleaned_data.items():
|
||||
if not val:
|
||||
self.add_error(name, _('Обязательное поле'))
|
||||
if cleaned_data['confirm_password'] != cleaned_data['password']:
|
||||
self.add_error("password", _('Пароль и подтверждение пароля не совпадают'))
|
||||
self.add_error("confirm_password", _('Пароль и подтверждение пароля не совпадают'))
|
||||
|
||||
Reference in New Issue
Block a user