summaryrefslogtreecommitdiff
path: root/yaksh/views.py
diff options
context:
space:
mode:
authormaheshgudi2017-01-28 10:57:46 +0530
committermaheshgudi2017-01-28 10:57:46 +0530
commit850c58d41c515b98dc741e96942164ba60567000 (patch)
tree2d458f3bd8e618e5444d4cb9fdfe1027149d9aa0 /yaksh/views.py
parent5e7d7190a20ac3eb83ad5dd5e58fa216533eabad (diff)
downloadonline_test-850c58d41c515b98dc741e96942164ba60567000.tar.gz
online_test-850c58d41c515b98dc741e96942164ba60567000.tar.bz2
online_test-850c58d41c515b98dc741e96942164ba60567000.zip
fixed enroll reject bug
Enroll and reject students would add different users instead of the one selected. Fixed the bug
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)