]> git.openstreetmap.org Git - osqa.git/commitdiff
Sor order was not working.
authorhernani <hernani@0cfe37f9-358a-4d5e-be75-b63607b5c754>
Tue, 11 May 2010 10:22:59 +0000 (10:22 +0000)
committerhernani <hernani@0cfe37f9-358a-4d5e-be75-b63607b5c754>
Tue, 11 May 2010 10:22:59 +0000 (10:22 +0000)
git-svn-id: http://svn.osqa.net/svnroot/osqa/trunk@216 0cfe37f9-358a-4d5e-be75-b63607b5c754

forum/views/readers.py

index 77d27d06ba9e8327ab3fcf55756f70a518a2f312..7a76b1539874aec8532225ae5b4b182c68d0415e 100644 (file)
@@ -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),
 @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):
 
 @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)),
 
 @decorators.render('questions.html')
 def tag(request, tag):
     return question_list(request, Question.objects.filter(tags__name=unquote(tag)),
-                        mark_safe(_('Questions tagged <span class="tag">%(tag)s</span>') % {'tag': tag}),
-                        'active',
-                        None,
-                        mark_safe(_('Questions tagged %(tag)s') % {'tag': tag}),
-                        False)
+                        list_description=mark_safe(_('Questions tagged <span class="tag">%(tag)s</span>') % {'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):
 
 @decorators.list('questions', QUESTIONS_PAGE_SIZE)
 def question_list(request, initial, list_description=_('questions'), sort=None, base_path=None, page_title=None, allowIgnoreTags=True):