From c71d78c0e36d29cc6259d88247234e153a94339d Mon Sep 17 00:00:00 2001 From: Evgeny Fadeev Date: Tue, 26 Apr 2011 18:40:37 -0400 Subject: do not show closed questions in the unanswered section --- askbot/models/question.py | 1 + 1 file changed, 1 insertion(+) diff --git a/askbot/models/question.py b/askbot/models/question.py index ccb587e7..99886ec9 100644 --- a/askbot/models/question.py +++ b/askbot/models/question.py @@ -200,6 +200,7 @@ class QuestionQuerySet(models.query.QuerySet): from askbot.conf import settings as askbot_settings if scope_selector: if scope_selector == 'unanswered': + qs = qs.filter(closed = False)#do not show closed questions in unanswered section if askbot_settings.UNANSWERED_QUESTION_MEANING == 'NO_ANSWERS': qs = qs.filter(answer_count=0)#todo: expand for different meanings of this elif askbot_settings.UNANSWERED_QUESTION_MEANING == 'NO_ACCEPTED_ANSWERS': -- cgit v1.2.3-1-g7c22