summaryrefslogtreecommitdiff
path: root/yaksh/views.py
diff options
context:
space:
mode:
authorprathamesh2016-03-07 15:29:36 +0530
committerprathamesh2016-03-07 15:29:36 +0530
commitb58a0b9831d8e6434362f776c89076c2d84e9b26 (patch)
treeb9580710f6ecb2102b8c20548a60af68a004b1de /yaksh/views.py
parentd9793c01304498d7f59820cf2ab2d7a5483851f8 (diff)
downloadonline_test-b58a0b9831d8e6434362f776c89076c2d84e9b26.tar.gz
online_test-b58a0b9831d8e6434362f776c89076c2d84e9b26.tar.bz2
online_test-b58a0b9831d8e6434362f776c89076c2d84e9b26.zip
Added tests for Course model
Diffstat (limited to 'yaksh/views.py')
-rw-r--r--yaksh/views.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/yaksh/views.py b/yaksh/views.py
index 9540a06..ffe8d93 100644
--- a/yaksh/views.py
+++ b/yaksh/views.py
@@ -1206,7 +1206,8 @@ def self_enroll(request, course_id):
ci = RequestContext(request)
course = get_object_or_404(Course, pk=course_id)
if course.is_self_enroll():
- course.enroll(False, user)
+ was_rejected = False
+ course.enroll(was_rejected, user)
return my_redirect('/exam/manage/')