From: hernani Date: Tue, 11 May 2010 10:22:59 +0000 (+0000) Subject: Sor order was not working. X-Git-Tag: live~913 X-Git-Url: https://git.openstreetmap.org./osqa.git/commitdiff_plain/771d73b1d54c1f31a8ceccec81c948283c32f090 Sor order was not working. git-svn-id: http://svn.osqa.net/svnroot/osqa/trunk@216 0cfe37f9-358a-4d5e-be75-b63607b5c754 --- diff --git a/forum/views/readers.py b/forum/views/readers.py index 77d27d0..7a76b15 100644 --- a/forum/views/readers.py +++ b/forum/views/readers.py @@ -48,21 +48,19 @@ def index(request): @decorators.render('questions.html', 'unanswered') def unanswered(request): return question_list(request, Question.objects.filter(extra_ref=None), - _('Open questions without an accepted answer'), - 'active', None, _("Unanswered questions")) + list_description=_('Open questions without an accepted answer'), + page_title=_("Unanswered questions")) @decorators.render('questions.html', 'questions') def questions(request): - return question_list(request, Question.objects.all(), _('questions'), 'active') + return question_list(request, Question.objects.all(), _('questions')) @decorators.render('questions.html') def tag(request, tag): return question_list(request, Question.objects.filter(tags__name=unquote(tag)), - mark_safe(_('Questions tagged %(tag)s') % {'tag': tag}), - 'active', - None, - mark_safe(_('Questions tagged %(tag)s') % {'tag': tag}), - False) + list_description=mark_safe(_('Questions tagged %(tag)s') % {'tag': tag}), + page_title=mark_safe(_('Questions tagged %(tag)s') % {'tag': tag}), + allowIgnoreTags=False) @decorators.list('questions', QUESTIONS_PAGE_SIZE) def question_list(request, initial, list_description=_('questions'), sort=None, base_path=None, page_title=None, allowIgnoreTags=True):