]> git.openstreetmap.org Git - osqa.git/commitdiff
OSQA-695, exclude the closed questions from the unanswered questions list. There...
authorjordan <jordan@0cfe37f9-358a-4d5e-be75-b63607b5c754>
Fri, 1 Jul 2011 15:02:55 +0000 (15:02 +0000)
committerjordan <jordan@0cfe37f9-358a-4d5e-be75-b63607b5c754>
Fri, 1 Jul 2011 15:02:55 +0000 (15:02 +0000)
git-svn-id: http://svn.osqa.net/svnroot/osqa/trunk@1090 0cfe37f9-358a-4d5e-be75-b63607b5c754

forum/views/readers.py

index aeaae0db3959c6216f57fd7b2a1ec2ecda6d5d7a..dcfbba595e403c85d63029eb18c652a7b7b9cd79 100644 (file)
@@ -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"))