]> git.openstreetmap.org Git - osqa.git/blobdiff - forum/views/readers.py
Some other user private stuff was not being properly checked.
[osqa.git] / forum / views / readers.py
index ac20dae11667821bd8b542d11b1cace4a2612beb..385a4bee2c7e15b4aa0bedafceb7a80c50ae953e 100644 (file)
@@ -96,7 +96,7 @@ def question_list(request, initial, list_description=_('questions'), sort=None,
     return {
         "questions" : questions,
         "questions_count" : questions.count(),
-        "tags_autocomplete" : _get_tags_cache_json(),
+        #"tags_autocomplete" : _get_tags_cache_json(),
         "list_description": list_description,
         "base_path" : base_path,
         }
@@ -200,7 +200,7 @@ def update_question_view_times(request, question):
 
 def match_question_slug(slug):
     slug_words = slug.split('-')
-    qs = Question.objects.filter(title__istartswith=slug_words[0])
+    qs = Question.objects.filter(node_type="question", title__istartswith=slug_words[0])
 
     for q in qs:
         if slug == urlquote(slugify(q.title)):