summaryrefslogtreecommitdiff
path: root/yaksh/forms.py
diff options
context:
space:
mode:
Diffstat (limited to 'yaksh/forms.py')
-rw-r--r--yaksh/forms.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/yaksh/forms.py b/yaksh/forms.py
index c09566f..3459be9 100644
--- a/yaksh/forms.py
+++ b/yaksh/forms.py
@@ -150,8 +150,7 @@ class UserRegisterForm(forms.Form):
new_profile.key_expiry_time = timezone.now() + \
timezone.timedelta(minutes=20)
new_profile.save()
- user_activation_key = Profile.objects.get(user=new_user).activation_key
- return u_name, pwd, new_user.email, user_activation_key
+ return u_name, pwd, new_user.email, new_profile.activation_key
class UserLoginForm(forms.Form):