summaryrefslogtreecommitdiff
path: root/yaksh/views.py
diff options
context:
space:
mode:
authorPrabhu Ramachandran2017-10-07 10:54:39 +0530
committerGitHub2017-10-07 10:54:39 +0530
commit39ec0271244826b2693f01f6daaa99525404e15a (patch)
tree04cf534ac2cdc90f386e051588bf443fc61219ff /yaksh/views.py
parenta626f3792d03ccd96a1c49c7096076950d020c5a (diff)
parent2eb511847777e4e941ed5fc40783086d5e0bdfcc (diff)
downloadonline_test-39ec0271244826b2693f01f6daaa99525404e15a.tar.gz
online_test-39ec0271244826b2693f01f6daaa99525404e15a.tar.bz2
online_test-39ec0271244826b2693f01f6daaa99525404e15a.zip
Merge pull request #343 from adityacp/fix_shuffle_questions
Fix shuffle questions
Diffstat (limited to 'yaksh/views.py')
-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)