From: qw3rty Date: Mon, 10 May 2010 22:12:45 +0000 (+0000) Subject: renamed variable for ignoring tags. This one is better X-Git-Tag: live~925 X-Git-Url: https://git.openstreetmap.org./osqa.git/commitdiff_plain/d7f894f3ccc0e38eef311f328fb8b3df357ea017 renamed variable for ignoring tags. This one is better git-svn-id: http://svn.osqa.net/svnroot/osqa/trunk@204 0cfe37f9-358a-4d5e-be75-b63607b5c754 --- diff --git a/forum/views/readers.py b/forum/views/readers.py index 42950a9..e6afdfe 100644 --- a/forum/views/readers.py +++ b/forum/views/readers.py @@ -62,15 +62,15 @@ def tag(request, tag): 'active', None, mark_safe(_('Questions tagged %(tag)s') % {'tag': tag}), - True) + False) @decorators.list('questions', QUESTIONS_PAGE_SIZE) -def question_list(request, initial, list_description=_('questions'), sort=None, base_path=None, page_title=None, ignoringTags=False): +def question_list(request, initial, list_description=_('questions'), sort=None, base_path=None, page_title=None, allowIgnoreTags=True): questions = initial.filter(deleted=None, in_moderation=None) test = request.user.marked_tags - if request.user.is_authenticated() and not ignoringTags: + if request.user.is_authenticated() and allowIgnoreTags: questions = questions.filter(~Q(tags__id__in = request.user.marked_tags.filter(user_selections__reason = 'bad'))) if sort is not False: