diff options
author | adityacp | 2017-05-17 15:39:11 +0530 |
---|---|---|
committer | adityacp | 2017-05-17 15:39:11 +0530 |
commit | e6ab47d2ea99b703e3c261ad5e7b6785f6f8d5d5 (patch) | |
tree | d828f6f7697438d8addf04140f6c32bd005aaf6f /yaksh | |
parent | 1c397982f99a7c69461afacb72b6a536aecf224b (diff) | |
download | online_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.py | 3 |
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): |