diff options
-rw-r--r-- | yaksh/templates/500.html | 2 | ||||
-rw-r--r-- | yaksh/views.py | 6 |
2 files changed, 4 insertions, 4 deletions
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 @@ <center> Internal Server error.<br /> This event will be reported.<br /> -Sorry for the inconvinience. +Sorry for the inconvenience. </center> {% endblock %} diff --git a/yaksh/views.py b/yaksh/views.py index de6a1a2..0f81931 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 @@ -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: |