Commit b7eb640e authored by Sylvane Suminguit's avatar Sylvane Suminguit

minor revisions for the second iteration

parent abb8bc56
...@@ -19,6 +19,8 @@ class UserCreateForm(UserCreationForm): ...@@ -19,6 +19,8 @@ class UserCreateForm(UserCreationForm):
if commit: if commit:
user.save() user.save()
return user return user
#I THINK what this does is raise an exception if the email already exists so I took it out for now since it's kinda out of our scope and gets in the way of me testing
""" """
def clean_email(self): def clean_email(self):
if User.objects.filter(email=self.cleaned_data['email']).exists(): if User.objects.filter(email=self.cleaned_data['email']).exists():
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment