diff options
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 |