]> git.openstreetmap.org Git - osqa.git/blobdiff - forum/views/readers.py
made it so that when you are searching questions the questions tab is highlighted
[osqa.git] / forum / views / readers.py
index 9eea9787191bb24472cd4ef6410f77649b52a6c2..b865fbb0dc2b91f9ddef69b6928b66e698c5ac8f 100644 (file)
@@ -97,7 +97,7 @@ def question_list(request, initial, list_description=_('questions'), sort=None,
 
     answer_count = Answer.objects.filter(deleted=None, parent__in=questions).count()   
     answer_description = _("answers")
-    
+
     return {
         "questions" : questions,
         "questions_count" : questions.count(),
@@ -108,6 +108,7 @@ def question_list(request, initial, list_description=_('questions'), sort=None,
         "answer_description": answer_description,
         "base_path" : base_path,
         "page_title" : page_title,
+        "tab" : "questions",
         }