diff options
author | adityacp | 2016-05-12 11:27:57 +0530 |
---|---|---|
committer | adityacp | 2016-05-12 11:27:57 +0530 |
commit | c1cd00f34341e06dce7610fa5da42d68b531bd92 (patch) | |
tree | 663821afccd2124b3faf440eafc668d9b8f0e27d /yaksh | |
parent | cf244b48e9bebcaf48f5491e0a492b7788fd3709 (diff) | |
download | online_test-c1cd00f34341e06dce7610fa5da42d68b531bd92.tar.gz online_test-c1cd00f34341e06dce7610fa5da42d68b531bd92.tar.bz2 online_test-c1cd00f34341e06dce7610fa5da42d68b531bd92.zip |
rebase changes and comments changes
Diffstat (limited to 'yaksh')
-rw-r--r-- | yaksh/forms.py | 3 | ||||
-rw-r--r-- | yaksh/models.py | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/yaksh/forms.py b/yaksh/forms.py index 34b87d4..26e0967 100644 --- a/yaksh/forms.py +++ b/yaksh/forms.py @@ -74,7 +74,8 @@ class UserRegisterForm(forms.Form): (max_length=64, help_text='Department you work/study at') position = forms.CharField\ (max_length=64, help_text='Student/Faculty/Researcher/Industry/etc.') - timezone = forms.ChoiceField(choices=[(tz, tz) for tz in pytz.common_timezones]) + timezone = forms.ChoiceField(choices=[(tz, tz) for tz in pytz.common_timezones], + initial=pytz.utc) def clean_username(self): u_name = self.cleaned_data["username"] diff --git a/yaksh/models.py b/yaksh/models.py index 23fd1c9..dbe7892 100644 --- a/yaksh/models.py +++ b/yaksh/models.py @@ -148,6 +148,8 @@ class Profile(models.Model): institute = models.CharField(max_length=128) department = models.CharField(max_length=64) position = models.CharField(max_length=64) + timezone = models.CharField(max_length=64, + choices=[(tz, tz) for tz in pytz.common_timezones]) ############################################################################### |