From e2e543f7e9010c5ff02845fd063257fbd7579e4d Mon Sep 17 00:00:00 2001 From: "Claudio Maggioni (maggicl)" Date: Sun, 28 Apr 2019 13:00:10 +0200 Subject: [PATCH] Fixed bug in registration form --- user/forms.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/user/forms.py b/user/forms.py index 5d4a682..02f9082 100644 --- a/user/forms.py +++ b/user/forms.py @@ -14,7 +14,7 @@ class RegistrationForm(UserCreationForm): field_classes = {'username': UsernameField, 'email': forms.EmailField} def save(self, commit=True): - user = super(RegisterForm, self).save(commit=False) + user = super(RegistrationForm, self).save(commit=False) user.email = self.cleaned_data["email"] if commit: user.save()