From e6ab47d2ea99b703e3c261ad5e7b6785f6f8d5d5 Mon Sep 17 00:00:00 2001 From: adityacp Date: Wed, 17 May 2017 15:39:11 +0530 Subject: Change user registration form to get activation_key --- yaksh/forms.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'yaksh/forms.py') 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): -- cgit