summaryrefslogtreecommitdiff
path: root/yaksh/views.py
diff options
context:
space:
mode:
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/')