From 7d243a58856c09d7d547c1a239ecb9af56f3d6df Mon Sep 17 00:00:00 2001 From: maheshgudi Date: Tue, 6 Sep 2016 16:16:14 +0530 Subject: modified monitor view function to remove trial paper occurrences --- yaksh/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/yaksh/views.py b/yaksh/views.py index 476ccc6..f32b8f8 100644 --- a/yaksh/views.py +++ b/yaksh/views.py @@ -791,7 +791,7 @@ def monitor(request, questionpaper_id=None): if questionpaper_id is None: q_paper = QuestionPaper.objects.filter(Q(quiz__course__creator=user) | Q(quiz__course__teachers=user), - quiz__course__is_trial=False + quiz__is_trial=False ).distinct() context = {'papers': [], 'quiz': None, @@ -802,7 +802,7 @@ def monitor(request, questionpaper_id=None): try: q_paper = QuestionPaper.objects.filter(Q(quiz__course__creator=user) | Q(quiz__course__teachers=user), - quiz__course__is_trial=False, + quiz__is_trial=False, id=questionpaper_id).distinct() except QuestionPaper.DoesNotExist: papers = [] -- cgit