diff options
author | CruiseDevice | 2021-03-01 15:24:33 +0530 |
---|---|---|
committer | CruiseDevice | 2021-03-01 15:24:33 +0530 |
commit | 3523fea7d001d3e9ecdd9d87b94121b8c8e75ef0 (patch) | |
tree | 95f8f0e76a6fe34847c23c9b3176f05982152664 /yaksh/views.py | |
parent | 0cc290e6207006339b7d553127b432542284eea8 (diff) | |
download | online_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.py | 4 |
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} |