From: jordan Date: Fri, 1 Jul 2011 15:02:55 +0000 (+0000) Subject: OSQA-695, exclude the closed questions from the unanswered questions list. There... X-Git-Tag: live~223 X-Git-Url: https://git.openstreetmap.org/osqa.git/commitdiff_plain/ac93dd53a93c3addee4fd52b5598907bfa1e7e0a OSQA-695, exclude the closed questions from the unanswered questions list. There is no much point to display them there as they will never get answered anymore (until being reopened). git-svn-id: http://svn.osqa.net/svnroot/osqa/trunk@1090 0cfe37f9-358a-4d5e-be75-b63607b5c754 --- diff --git a/forum/views/readers.py b/forum/views/readers.py index aeaae0d..dcfbba5 100644 --- a/forum/views/readers.py +++ b/forum/views/readers.py @@ -91,7 +91,7 @@ def index(request): @decorators.render('questions.html', 'unanswered', _('unanswered'), weight=400) def unanswered(request): return question_list(request, - Question.objects.exclude(id__in=Question.objects.filter(children__marked=True).distinct()), + Question.objects.exclude(id__in=Question.objects.filter(children__marked=True).distinct()).exclude(marked=True), _('open questions without an accepted answer'), None, _("Unanswered Questions"))