|
|
|
@ -56,6 +56,13 @@ class RegistrationForm(RegistrationFormUniqueEmail): |
|
|
|
raise forms.ValidationError(_('Введите email с валидными доменом')) |
|
|
|
raise forms.ValidationError(_('Введите email с валидными доменом')) |
|
|
|
return email |
|
|
|
return email |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def clean_captcha(self): |
|
|
|
|
|
|
|
captcha = super().clean_captcha() |
|
|
|
|
|
|
|
if not captcha: |
|
|
|
|
|
|
|
raise forms.ValidationError("Enter captcha") |
|
|
|
|
|
|
|
print(captcha) |
|
|
|
|
|
|
|
return captcha |
|
|
|
|
|
|
|
|
|
|
|
def save(self, commit=True): |
|
|
|
def save(self, commit=True): |
|
|
|
user = super().save(commit) |
|
|
|
user = super().save(commit) |
|
|
|
profile = Profile.objects.filter(user=user).first() |
|
|
|
profile = Profile.objects.filter(user=user).first() |
|
|
|
|