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 @@