summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pytask/profile/forms.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/pytask/profile/forms.py b/pytask/profile/forms.py
index 2a82db3..91fe840 100644
--- a/pytask/profile/forms.py
+++ b/pytask/profile/forms.py
@@ -71,7 +71,7 @@ class CustomRegistrationForm(RegistrationFormUniqueEmail):
return data
- def save(self,profile_callback=None):
+ def save(self, profile_callback=None):
new_user = RegistrationProfile.objects.create_inactive_user(
username=self.cleaned_data['username'],
@@ -87,9 +87,10 @@ class CustomRegistrationForm(RegistrationFormUniqueEmail):
uniq_key=make_key(Profile),
)
new_profile.save()
-
+
return new_user
+
class CreateProfileForm(forms.ModelForm):
class Meta: