diff options
author | Evgeny Fadeev <evgeny.fadeev@gmail.com> | 2011-04-26 18:40:37 -0400 |
---|---|---|
committer | Evgeny Fadeev <evgeny.fadeev@gmail.com> | 2011-04-26 18:40:37 -0400 |
commit | c71d78c0e36d29cc6259d88247234e153a94339d (patch) | |
tree | 73ac8b5d9654b3393bd17c4eb720dd6eebb1c195 | |
parent | 2e5fc818a6ed78fd4824022fca8fe6344862a87d (diff) | |
download | askbot-c71d78c0e36d29cc6259d88247234e153a94339d.tar.gz askbot-c71d78c0e36d29cc6259d88247234e153a94339d.tar.bz2 askbot-c71d78c0e36d29cc6259d88247234e153a94339d.zip |
do not show closed questions in the unanswered section
-rw-r--r-- | askbot/models/question.py | 1 |
1 files changed, 1 insertions, 0 deletions
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': |