Fixed bug in registration form
This commit is contained in:
parent
718d6b7bba
commit
e2e543f7e9
1 changed files with 1 additions and 1 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue