diff options
author | mahesh | 2018-02-02 15:22:25 +0530 |
---|---|---|
committer | maheshgudi | 2018-03-16 15:15:50 +0530 |
commit | 9c9e505e79abce0cae6b341880ed9f8a4e31a8be (patch) | |
tree | 4a95429d0b2fd65cfc33ff932a2ebb3c2491ba53 /yaksh/views.py | |
parent | 1c8bc4aaadb307b14cb4e673485bf2405e921543 (diff) | |
download | online_test-9c9e505e79abce0cae6b341880ed9f8a4e31a8be.tar.gz online_test-9c9e505e79abce0cae6b341880ed9f8a4e31a8be.tar.bz2 online_test-9c9e505e79abce0cae6b341880ed9f8a4e31a8be.zip |
Add jumble question type
Diffstat (limited to 'yaksh/views.py')
-rw-r--r-- | yaksh/views.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/yaksh/views.py b/yaksh/views.py index 27a07d2..5c88391 100644 --- a/yaksh/views.py +++ b/yaksh/views.py @@ -726,6 +726,9 @@ def check(request, q_id, attempt_num=None, questionpaper_id=None, elif current_question.type == 'mcc': user_answer = request.POST.getlist('answer') + elif current_question.type == 'arrange': + user_answer_list = request.POST.get('answer').split(',') + user_answer = [int(ids) for ids in user_answer_list] elif current_question.type == 'upload': # if time-up at upload question then the form is submitted without # validation |