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,
}
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)):
def question(request, id, slug):
try:
- question = Question.objects.get(id=id)
+ question = Question.objects.get(node_type="question", id=id)
except:
question = match_question_slug(slug)
if question is not None: