diff --git a/cfp/forms.py b/cfp/forms.py index 946265f..30f30cd 100644 --- a/cfp/forms.py +++ b/cfp/forms.py @@ -45,6 +45,7 @@ class CreateUserForm(forms.ModelForm): email = self.cleaned_data.get('email') if email and User.objects.filter(email=email).exists(): raise forms.ValidationError(_('A user with that email already exists.')) + return email def save(self, commit=True): user = super().save(commit=False)