summaryrefslogtreecommitdiff
path: root/yaksh/views.py
diff options
context:
space:
mode:
authorPrabhu Ramachandran2017-01-31 16:59:27 +0530
committerGitHub2017-01-31 16:59:27 +0530
commita64b9c30f2cd4554734bba16b0aad7647475000d (patch)
treed9e95f2b4a76be0a174fd9170b12ec55018fbb63 /yaksh/views.py
parent5099da0b5a0d037887fa678a5c8e08614ad4a611 (diff)
parent146c6c351e4921bc8cacf46d1092619a10bc6e8f (diff)
downloadonline_test-a64b9c30f2cd4554734bba16b0aad7647475000d.tar.gz
online_test-a64b9c30f2cd4554734bba16b0aad7647475000d.tar.bz2
online_test-a64b9c30f2cd4554734bba16b0aad7647475000d.zip
Merge pull request #187 from maheshgudi/mcq_bugfix
Course related bugfixes
Diffstat (limited to 'yaksh/views.py')
-rw-r--r--yaksh/views.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/yaksh/views.py b/yaksh/views.py
index c4e8b61..605d3f2 100644
--- a/yaksh/views.py
+++ b/yaksh/views.py
@@ -639,7 +639,7 @@ def enroll(request, course_id, user_id=None, was_rejected=False):
if request.method == 'POST':
enroll_ids = request.POST.getlist('check')
else:
- enroll_ids = user_id
+ enroll_ids = [user_id]
if not enroll_ids:
return my_render_to_response('yaksh/course_detail.html', {'course': course},
context_instance=ci)
@@ -662,7 +662,7 @@ def reject(request, course_id, user_id=None, was_enrolled=False):
if request.method == 'POST':
reject_ids = request.POST.getlist('check')
else:
- reject_ids = user_id
+ reject_ids = [user_id]
if not reject_ids:
return my_render_to_response('yaksh/course_detail.html', {'course': course},
context_instance=ci)