X-Git-Url: https://git.openstreetmap.org./osqa.git/blobdiff_plain/9b450de133375fb612625b826f1920b672ab2acc..de61afcbf3b458518c743b6f3db8767701b04129:/forum/views/readers.py diff --git a/forum/views/readers.py b/forum/views/readers.py index ac20dae..385a4be 100644 --- a/forum/views/readers.py +++ b/forum/views/readers.py @@ -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)):