diff options
author | maheshgudi | 2016-09-06 16:16:14 +0530 |
---|---|---|
committer | maheshgudi | 2016-09-06 16:16:14 +0530 |
commit | 7d243a58856c09d7d547c1a239ecb9af56f3d6df (patch) | |
tree | 5723faf29cfcfbca055edb8d26e117cb846f0fa5 | |
parent | 27720bb67d5c44dcb2d9ec8f315f4e26624c0a4c (diff) | |
download | online_test-7d243a58856c09d7d547c1a239ecb9af56f3d6df.tar.gz online_test-7d243a58856c09d7d547c1a239ecb9af56f3d6df.tar.bz2 online_test-7d243a58856c09d7d547c1a239ecb9af56f3d6df.zip |
modified monitor view function to remove trial paper occurrences
-rw-r--r-- | yaksh/views.py | 4 |
1 files 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 = [] |