summaryrefslogtreecommitdiff
path: root/yaksh
diff options
context:
space:
mode:
authormaheshgudi2016-07-08 10:58:28 +0530
committermaheshgudi2016-07-11 16:10:55 +0530
commit87f3f30b4288bcc867fd0f18f7d845484aaf910c (patch)
treee6838290a9589e48c8fe69e1191553b8126eb5c5 /yaksh
parentf1fd7ece4fed04c333df436e39fd89f37133070e (diff)
downloadonline_test-87f3f30b4288bcc867fd0f18f7d845484aaf910c.tar.gz
online_test-87f3f30b4288bcc867fd0f18f7d845484aaf910c.tar.bz2
online_test-87f3f30b4288bcc867fd0f18f7d845484aaf910c.zip
made minor changes in creating test quiz
Diffstat (limited to 'yaksh')
-rw-r--r--yaksh/models.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/yaksh/models.py b/yaksh/models.py
index ddfd5db..4ee6141 100644
--- a/yaksh/models.py
+++ b/yaksh/models.py
@@ -336,10 +336,11 @@ class QuizManager(models.Manager):
trial_quiz.pk = None
trial_quiz.description = trial_quiz_name
trial_quiz.is_trial = True
- trial_quiz.time_between_attempts = 0
trial_quiz.prerequisite = None
if godmode:
+ trial_quiz.time_between_attempts = 0
trial_quiz.duration = 1000
+ trial_quiz.attempts_allowed = -1
trial_quiz.active = True
trial_quiz.start_date_time = timezone.now()
trial_quiz.end_date_time = datetime(2199, 1, 1, 0, 0, 0, 0,