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