diff options
author | prathamesh | 2016-03-07 15:29:36 +0530 |
---|---|---|
committer | prathamesh | 2016-03-07 15:29:36 +0530 |
commit | b58a0b9831d8e6434362f776c89076c2d84e9b26 (patch) | |
tree | b9580710f6ecb2102b8c20548a60af68a004b1de /yaksh/views.py | |
parent | d9793c01304498d7f59820cf2ab2d7a5483851f8 (diff) | |
download | online_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.py | 3 |
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/') |