summaryrefslogtreecommitdiff
path: root/yaksh/views.py
diff options
context:
space:
mode:
authorankitjavalkar2019-02-19 11:29:28 +0530
committerGitHub2019-02-19 11:29:28 +0530
commit8b5674dbd170307f5acac63fa1c53fd94dbe990e (patch)
tree9e6a3f33c4cfcf5cc97774706e7046c37f680cd7 /yaksh/views.py
parentb71b517173cac8b4f266f36d0cbc918551b3ee73 (diff)
parent4b535014a5af1612a81e8ee691e47ef154fa6cae (diff)
downloadonline_test-8b5674dbd170307f5acac63fa1c53fd94dbe990e.tar.gz
online_test-8b5674dbd170307f5acac63fa1c53fd94dbe990e.tar.bz2
online_test-8b5674dbd170307f5acac63fa1c53fd94dbe990e.zip
Merge pull request #577 from CruiseDevice/preview_question_paper_in_quiz
Add Preview QuestionPaper button in Quiz view page
Diffstat (limited to 'yaksh/views.py')
-rw-r--r--yaksh/views.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/yaksh/views.py b/yaksh/views.py
index 6c7a12e..1ea7a22 100644
--- a/yaksh/views.py
+++ b/yaksh/views.py
@@ -2825,8 +2825,6 @@ def preview_questionpaper(request, questionpaper_id):
if not is_moderator(user):
raise Http404('You are not allowed to view this page!')
paper = QuestionPaper.objects.get(id=questionpaper_id)
- if not paper.quiz.creator == user:
- raise Http404('This questionpaper does not belong to you')
context = {
'questions': paper._get_questions_for_answerpaper(),
'paper': paper,