diff options
author | prathamesh | 2018-01-03 19:27:25 +0530 |
---|---|---|
committer | prathamesh | 2018-01-03 19:32:35 +0530 |
commit | 4310d5905a9cc702198e42830c1b670957cd7360 (patch) | |
tree | 098c7cdc1e97d5e7bd859e35107a4733e800a586 /yaksh/views.py | |
parent | 44e16651a9f7faec95a32c19738a996a731ae57a (diff) | |
download | online_test-4310d5905a9cc702198e42830c1b670957cd7360.tar.gz online_test-4310d5905a9cc702198e42830c1b670957cd7360.tar.bz2 online_test-4310d5905a9cc702198e42830c1b670957cd7360.zip |
Made UI changes as per suggestion
Added view answerpaper option to exercise form.
Diffstat (limited to 'yaksh/views.py')
-rw-r--r-- | yaksh/views.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/yaksh/views.py b/yaksh/views.py index ca22c9a..a4d9e78 100644 --- a/yaksh/views.py +++ b/yaksh/views.py @@ -586,7 +586,7 @@ def show_question(request, question, paper, error_message=None, notification=Non reason = 'The quiz has been deactivated!' return complete( request, reason, paper.attempt_number, paper.question_paper.id, - module_id=module_id + course_id=course_id, module_id=module_id ) if not quiz.is_exercise: if paper.time_left() <= 0: @@ -955,7 +955,7 @@ def enroll_request(request, course_id): user = request.user ci = RequestContext(request) course = get_object_or_404(Course, pk=course_id) - if not course.is_active_enrollment and course.hidden: + if not course.is_active_enrollment() and course.hidden: msg = ( 'Unable to add enrollments for this course, please contact your ' 'instructor/administrator.' @@ -1028,7 +1028,7 @@ def enroll(request, course_id, user_id=None, was_rejected=False): raise Http404('You are not allowed to view this page') course = get_object_or_404(Course, pk=course_id) - if not course.is_active_enrollment: + if not course.is_active_enrollment(): msg = ( 'Enrollment for this course has been closed,' ' please contact your ' |