From 55dd1da1191dccbf66193ccd4d1a1a833bfe4513 Mon Sep 17 00:00:00 2001 From: mahesh Date: Thu, 8 Feb 2018 13:02:37 +0530 Subject: Add testcases for custom templatetag filters --- yaksh/models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'yaksh/models.py') 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] -- cgit