summaryrefslogtreecommitdiff
path: root/yaksh/forms.py
diff options
context:
space:
mode:
authorMahesh Gudi2018-03-21 13:48:56 +0000
committerGitHub2018-03-21 13:48:56 +0000
commit9a5918700857ee7b912221e1df850bb0288262c2 (patch)
tree367ef8a4e85b0b6643836ab83786f9e7e8c00d95 /yaksh/forms.py
parente244cd285669d3de80a764d75eecbb46b6d3fd63 (diff)
parent4b356aa2f6097cd0f46292218f31ded18b631e53 (diff)
downloadonline_test-9a5918700857ee7b912221e1df850bb0288262c2.tar.gz
online_test-9a5918700857ee7b912221e1df850bb0288262c2.tar.bz2
online_test-9a5918700857ee7b912221e1df850bb0288262c2.zip
Merge branch 'master' into fix_quiz_completion
Diffstat (limited to 'yaksh/forms.py')
-rw-r--r--yaksh/forms.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/yaksh/forms.py b/yaksh/forms.py
index 258a1ee..97b3108 100644
--- a/yaksh/forms.py
+++ b/yaksh/forms.py
@@ -85,10 +85,12 @@ class UserRegisterForm(forms.Form):
department = forms.CharField(
max_length=64, help_text='Department you work/study at')
position = forms.CharField(
- max_length=64, help_text='Student/Faculty/Researcher/Industry/etc.')
+ max_length=64,
+ help_text='Student/Faculty/Researcher/Industry/Fellowship/etc.')
timezone = forms.ChoiceField(
choices=[(tz, tz) for tz in pytz.common_timezones],
- initial=pytz.utc)
+ help_text='Course timings are shown based on the selected timezone',
+ initial=pytz.country_timezones['IN'][0])
def clean_username(self):
u_name = self.cleaned_data["username"]
@@ -308,7 +310,7 @@ class UploadFileForm(forms.Form):
class QuestionPaperForm(forms.ModelForm):
class Meta:
model = QuestionPaper
- fields = ['shuffle_questions']
+ fields = ['shuffle_questions', 'shuffle_testcases']
class LessonForm(forms.ModelForm):