]> git.openstreetmap.org Git - osqa.git/blobdiff - forum/views/readers.py
OSQA-621, adding a separate rss link for the question_search view.
[osqa.git] / forum / views / readers.py
index 8d2cd85f43b2eb112484dca9737cd8b3b842a87e..cad081a83f621363c8b01a3621274a0901d20a5a 100644 (file)
@@ -213,11 +213,14 @@ def question_search(request, keywords):
     else:
         paginator_context = None
 
+    feed_url = mark_safe(escape(request.path + "?type=rss&q=" + keywords))
+
     return question_list(request, initial,
                          _("questions matching '%(keywords)s'") % {'keywords': keywords},
                          None,
                          _("questions matching '%(keywords)s'") % {'keywords': keywords},
-                         paginator_context=paginator_context)
+                         paginator_context=paginator_context,
+                         feed_url=feed_url)
 
 
 @decorators.render('tags.html', 'tags', _('tags'), weight=100)