]> git.openstreetmap.org Git - osqa.git/blobdiff - forum/views/readers.py
beta version af the sx importer, don't use for importing production sites, only for...
[osqa.git] / forum / views / readers.py
index ac20dae11667821bd8b542d11b1cace4a2612beb..31efdcef52fb9be453de1f32592e612f3cb8ce64 100644 (file)
@@ -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)):