summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormaheshgudi2016-09-06 16:16:14 +0530
committermaheshgudi2016-09-06 16:16:14 +0530
commit7d243a58856c09d7d547c1a239ecb9af56f3d6df (patch)
tree5723faf29cfcfbca055edb8d26e117cb846f0fa5
parent27720bb67d5c44dcb2d9ec8f315f4e26624c0a4c (diff)
downloadonline_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.py4
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 = []