summaryrefslogtreecommitdiff
path: root/yaksh
diff options
context:
space:
mode:
authoradityacp2017-05-17 15:39:11 +0530
committeradityacp2017-05-17 15:39:11 +0530
commite6ab47d2ea99b703e3c261ad5e7b6785f6f8d5d5 (patch)
treed828f6f7697438d8addf04140f6c32bd005aaf6f /yaksh
parent1c397982f99a7c69461afacb72b6a536aecf224b (diff)
downloadonline_test-e6ab47d2ea99b703e3c261ad5e7b6785f6f8d5d5.tar.gz
online_test-e6ab47d2ea99b703e3c261ad5e7b6785f6f8d5d5.tar.bz2
online_test-e6ab47d2ea99b703e3c261ad5e7b6785f6f8d5d5.zip
Change user registration form to get activation_key
Diffstat (limited to 'yaksh')
-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):