diff options
author | maheshgudi | 2017-02-03 01:28:50 +0530 |
---|---|---|
committer | maheshgudi | 2017-02-03 11:57:03 +0530 |
commit | b277f9191bf8720533901e58db36851675b8f430 (patch) | |
tree | b38157409549b13c801cdfc9d2115eb237e6a210 /yaksh/models.py | |
parent | f3731c3314410377133431ae1c6ac0199ed822e2 (diff) | |
download | online_test-b277f9191bf8720533901e58db36851675b8f430.tar.gz online_test-b277f9191bf8720533901e58db36851675b8f430.tar.bz2 online_test-b277f9191bf8720533901e58db36851675b8f430.zip |
added skip question feature. closes #191
The can_skip_questions attribute is to be set True for students to be able to skip questions.
If it is set as False, students wont be able to skip to the next question.
Diffstat (limited to 'yaksh/models.py')
-rw-r--r-- | yaksh/models.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/yaksh/models.py b/yaksh/models.py index b917889..b2ba91f 100644 --- a/yaksh/models.py +++ b/yaksh/models.py @@ -580,6 +580,10 @@ class Quiz(models.Model): view_answerpaper = models.BooleanField('Allow student to view their answer\ paper', default=False) + can_skip_questions = models.BooleanField("Allow students to skip questions", + default=True + ) + objects = QuizManager() class Meta: |