From e8ab948bc9ad56232ad2bce0b35f7fb7838e1bab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89lie=20Bouttier?= Date: Mon, 31 Jul 2017 22:44:25 +0200 Subject: [PATCH] fix user creation bug --- cfp/forms.py | 1 + 1 file changed, 1 insertion(+) 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)