summaryrefslogtreecommitdiff
path: root/yaksh
diff options
context:
space:
mode:
authoradityacp2017-10-06 17:58:39 +0530
committeradityacp2017-10-06 17:58:39 +0530
commit9c6472c4a677248bc0f2de2a513368dc68d11f05 (patch)
tree9a055a7a5abf76e252e9f80f7be0daf0c24e55e1 /yaksh
parent30f4b893d4a36e0e1408ef2a07c92521fc4074bc (diff)
downloadonline_test-9c6472c4a677248bc0f2de2a513368dc68d11f05.tar.gz
online_test-9c6472c4a677248bc0f2de2a513368dc68d11f05.tar.bz2
online_test-9c6472c4a677248bc0f2de2a513368dc68d11f05.zip
Pep8 change in views.py
Diffstat (limited to 'yaksh')
-rw-r--r--yaksh/views.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/yaksh/views.py b/yaksh/views.py
index 6abfa2b..b4cb844 100644
--- a/yaksh/views.py
+++ b/yaksh/views.py
@@ -392,8 +392,7 @@ def start(request, questionpaper_id=None, attempt_num=None):
msg = 'Quiz not found, please contact your '\
'instructor/administrator.'
return complete(request, msg, attempt_num, questionpaper_id=None)
- if not quest_paper.get_ordered_questions() and not \
- quest_paper.random_questions.all():
+ if not quest_paper.has_questions():
msg = 'Quiz does not have Questions, please contact your '\
'instructor/administrator.'
return complete(request, msg, attempt_num, questionpaper_id=None)