diff options
author | mahesh | 2018-02-09 15:43:44 +0530 |
---|---|---|
committer | maheshgudi | 2018-03-16 15:15:50 +0530 |
commit | 07be6be0e805e17e45290b0e8137c044b2094edc (patch) | |
tree | 2dd1b2214be3c7ccc1bc82bdb2b2cb9cf1109ff4 /yaksh/models.py | |
parent | d4c79e599bfee207790632a71848d383fae7bd25 (diff) | |
download | online_test-07be6be0e805e17e45290b0e8137c044b2094edc.tar.gz online_test-07be6be0e805e17e45290b0e8137c044b2094edc.tar.bz2 online_test-07be6be0e805e17e45290b0e8137c044b2094edc.zip |
Change custom filter function to get_answer_for_arrange_options
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 624f776..ffc3c56 100644 --- a/yaksh/models.py +++ b/yaksh/models.py @@ -54,7 +54,7 @@ question_types = ( ("integer", "Answer in Integer"), ("string", "Answer in String"), ("float", "Answer in Float"), - ("arrange", "Arrange Options in Order"), + ("arrange", "Arrange Options in Correct Order"), ) @@ -1795,7 +1795,7 @@ class AnswerPaper(models.Model): result['error'] = ['Correct answer'] elif question.type == 'arrange': - tc_list = sorted([ids.id for ids in question.get_test_cases()]) + tc_list = sorted([tc.id for tc in question.get_test_cases()]) if user_answer == tc_list: result['success'] = True result['error'] = ['Correct answer'] |