diff options
author | adityacp | 2017-10-06 17:58:39 +0530 |
---|---|---|
committer | adityacp | 2017-10-06 17:58:39 +0530 |
commit | 9c6472c4a677248bc0f2de2a513368dc68d11f05 (patch) | |
tree | 9a055a7a5abf76e252e9f80f7be0daf0c24e55e1 /yaksh | |
parent | 30f4b893d4a36e0e1408ef2a07c92521fc4074bc (diff) | |
download | online_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.py | 3 |
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) |