diff options
author | adityacp | 2017-05-16 17:56:40 +0530 |
---|---|---|
committer | adityacp | 2017-05-16 17:56:40 +0530 |
commit | 4c7f5e6d2b48242e8c3cc97e30df9a8506b9e333 (patch) | |
tree | 611b5bb45f675de127c9d839bc28ee25b27d042e /yaksh/models.py | |
parent | 7baaa70c0e7f660ad7482c3c3950eab171b27cd3 (diff) | |
download | online_test-4c7f5e6d2b48242e8c3cc97e30df9a8506b9e333.tar.gz online_test-4c7f5e6d2b48242e8c3cc97e30df9a8506b9e333.tar.bz2 online_test-4c7f5e6d2b48242e8c3cc97e30df9a8506b9e333.zip |
Change forms.py, views.py, send_emails.py, models.py
- Alter activation_key field in Profile model
- Change get_activation_key function in send_mail to create secret_key of fixed length
- Change forms.py to get updated activation_key
- Change views.py to save activation_key
Diffstat (limited to 'yaksh/models.py')
-rw-r--r-- | yaksh/models.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/yaksh/models.py b/yaksh/models.py index 565bb23..79732cc 100644 --- a/yaksh/models.py +++ b/yaksh/models.py @@ -293,7 +293,7 @@ class Profile(models.Model): choices=[(tz, tz) for tz in pytz.common_timezones] ) is_email_verified = models.BooleanField(default=False) - activation_key = models.CharField(max_length=40, blank=True, null=True) + activation_key = models.CharField(max_length=255, blank=True, null=True) key_expiry_time = models.DateTimeField(blank=True, null=True) def get_user_dir(self): |