diff options
author | mahesh | 2018-02-08 13:02:37 +0530 |
---|---|---|
committer | maheshgudi | 2018-03-16 15:15:50 +0530 |
commit | 55dd1da1191dccbf66193ccd4d1a1a833bfe4513 (patch) | |
tree | 6704f6d731b1dd2d3610d69a67cee2f38b16b3e6 /yaksh/models.py | |
parent | b3bb71b80bd10eb49c7930d9cf6be109673cbe53 (diff) | |
download | online_test-55dd1da1191dccbf66193ccd4d1a1a833bfe4513.tar.gz online_test-55dd1da1191dccbf66193ccd4d1a1a833bfe4513.tar.bz2 online_test-55dd1da1191dccbf66193ccd4d1a1a833bfe4513.zip |
Add testcases for custom templatetag filters
Diffstat (limited to 'yaksh/models.py')
-rw-r--r-- | yaksh/models.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/yaksh/models.py b/yaksh/models.py index a79f2f6..624f776 100644 --- a/yaksh/models.py +++ b/yaksh/models.py @@ -1221,8 +1221,8 @@ class QuestionPaper(models.Model): question_ids = [] for question in questions: question_ids.append(str(question.id)) - if self.shuffle_testcases and \ - question.type in ["mcq", "mcc"]: + if (question.type == "arrange") or (self.shuffle_testcases + and question.type in ["mcq", "mcc"]): testcases = question.get_test_cases() random.shuffle(testcases) testcases_ids = ",".join([str(tc.id) for tc in testcases] |