summaryrefslogtreecommitdiff
path: root/yaksh/views.py
diff options
context:
space:
mode:
authorCruiseDevice2021-03-01 15:24:33 +0530
committerCruiseDevice2021-03-01 15:24:33 +0530
commit3523fea7d001d3e9ecdd9d87b94121b8c8e75ef0 (patch)
tree95f8f0e76a6fe34847c23c9b3176f05982152664 /yaksh/views.py
parent0cc290e6207006339b7d553127b432542284eea8 (diff)
downloadonline_test-3523fea7d001d3e9ecdd9d87b94121b8c8e75ef0.tar.gz
online_test-3523fea7d001d3e9ecdd9d87b94121b8c8e75ef0.tar.bz2
online_test-3523fea7d001d3e9ecdd9d87b94121b8c8e75ef0.zip
Fix failing testcases in Travis
Diffstat (limited to 'yaksh/views.py')
-rw-r--r--yaksh/views.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/yaksh/views.py b/yaksh/views.py
index 7d4f788..ea18541 100644
--- a/yaksh/views.py
+++ b/yaksh/views.py
@@ -2182,8 +2182,8 @@ def view_answerpaper(request, questionpaper_id, course_id):
data = AnswerPaper.objects.get_user_data(user, questionpaper_id,
course_id)
has_user_assignments = AssignmentUpload.objects.filter(
- user=user, course_id=course.id,
- question_paper_id=questionpaper_id
+ answer_paper__user=user, answer_paper__course_id=course.id,
+ answer_paper__question_paper_id=questionpaper_id
).exists()
context = {'data': data, 'quiz': quiz, 'course_id': course.id,
"has_user_assignments": has_user_assignments}