]> git.openstreetmap.org Git - osqa.git/blobdiff - forum/views/readers.py
Fix OSQA 269, User messages in new admin don't seem to link properly.
[osqa.git] / forum / views / readers.py
index b865fbb0dc2b91f9ddef69b6928b66e698c5ac8f..a48c35b19041b94e7ecf2932dc1fae3ddbae18c7 100644 (file)
@@ -128,13 +128,9 @@ def search(request):
     else:
         return render_to_response("search.html", context_instance=RequestContext(request))
 
-@decoratable
-def do_question_search(keywords):
-    return Question.objects.filter(Q(title__icontains=keywords) | Q(body__icontains=keywords))
-
 @decorators.render('questions.html')
 def question_search(request, keywords):
-    initial = do_question_search(keywords)
+    initial = Question.objects.search(keywords)
 
     return question_list(request, initial, _("questions matching '%(keywords)s'") % {'keywords': keywords},
             base_path="%s?t=question&q=%s" % (reverse('search'), django_urlquote(keywords)), sort=False)