diff options
author | mahesh | 2018-02-08 15:19:27 +0530 |
---|---|---|
committer | maheshgudi | 2018-03-16 15:17:20 +0530 |
commit | 366f9adce899b4cfd1e7a0e9a74dd5602fb0345a (patch) | |
tree | bb45b64a3ea0a27fed01c14f0a3f73cd07aabeb1 /yaksh/models.py | |
parent | 009d6fb6e373ec9e24bb13924372ad77b4e3ccc5 (diff) | |
download | online_test-366f9adce899b4cfd1e7a0e9a74dd5602fb0345a.tar.gz online_test-366f9adce899b4cfd1e7a0e9a74dd5602fb0345a.tar.bz2 online_test-366f9adce899b4cfd1e7a0e9a74dd5602fb0345a.zip |
Improve test cases for TestCaseOrder model
Diffstat (limited to 'yaksh/models.py')
-rw-r--r-- | yaksh/models.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/yaksh/models.py b/yaksh/models.py index f823cda..0bb1e66 100644 --- a/yaksh/models.py +++ b/yaksh/models.py @@ -939,7 +939,7 @@ class Question(models.Model): order = TestCaseOrder.objects.get(answer_paper=answerpaper, question = self ).order.split(",") - return [self.get_test_cases(id=int(tc_id))[0]\ + return [self.get_test_case(id=int(tc_id)) for tc_id in order ] except TestCaseOrder.DoesNotExist: |