From af4e2b312bc22b1be3a9c8f851a48a5dd3d90997 Mon Sep 17 00:00:00 2001 From: ankitjavalkar Date: Tue, 24 Jul 2018 19:52:44 +0530 Subject: Bug Fix: Fetch only distinct values for courses where User is Creator OR Teacher --- yaksh/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yaksh/views.py b/yaksh/views.py index de6a1a2..2d69fa2 100644 --- a/yaksh/views.py +++ b/yaksh/views.py @@ -383,7 +383,7 @@ def prof_manage(request, msg=None): if not is_moderator(user): return my_redirect('/exam/') courses = Course.objects.filter(Q(creator=user) | Q(teachers=user), - is_trial=False) + is_trial=False).distinct() trial_paper = AnswerPaper.objects.filter( user=user, question_paper__quiz__is_trial=True, course__is_trial=True -- cgit From bc66702638026bf8ef765a3251b2ea2eb67f19dd Mon Sep 17 00:00:00 2001 From: ankitjavalkar Date: Wed, 25 Jul 2018 11:38:04 +0530 Subject: Fix typo in 500 error page --- yaksh/templates/500.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yaksh/templates/500.html b/yaksh/templates/500.html index b3bf710..f2455d4 100644 --- a/yaksh/templates/500.html +++ b/yaksh/templates/500.html @@ -13,6 +13,6 @@
Internal Server error.
This event will be reported.
-Sorry for the inconvinience. +Sorry for the inconvenience.
{% endblock %} -- cgit From 4b2d66d8208998f4fceb1178dd085bd3158d0b7a Mon Sep 17 00:00:00 2001 From: ankitjavalkar Date: Mon, 14 Jan 2019 12:59:51 +0530 Subject: Fix PEP8 issue - Line more than 80 columns in views.py --- yaksh/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/yaksh/views.py b/yaksh/views.py index 2d69fa2..0f81931 100644 --- a/yaksh/views.py +++ b/yaksh/views.py @@ -905,8 +905,8 @@ def complete(request, reason=None, attempt_num=None, questionpaper_id=None, """Show a page to inform user that the quiz has been completed.""" user = request.user if questionpaper_id is None: - message = reason or "An Unexpected Error occurred. Please contact your '\ - 'instructor/administrator.'" + message = (reason or "An Unexpected Error occurred. Please contact your" + " instructor/administrator.") context = {'message': message} return my_render_to_response(request, 'yaksh/complete.html', context) else: -- cgit