answer_description = _("answers")
if not feed_url:
- feed_url = request.path + "?type=rss"
+ req_params = "&".join(["%s=%s" % (k, v) for k, v in request.GET.items() if not k in ('page', 'pagesize', 'sort')])
+ if req_params:
+ req_params = '&' + req_params
+
+ feed_url = mark_safe(request.path + "?type=rss" + req_params)
return {
"questions" : questions,
def revisions(request, id):
post = get_object_or_404(Node, id=id).leaf
revisions = list(post.revisions.order_by('revised_at'))
-
rev_ctx = []
for i, revision in enumerate(revisions):
- rev_ctx.append(dict(inst=revision, html=REVISION_TEMPLATE.render(template.Context({
+ rev_ctx.append(dict(inst=revision, html=template.loader.get_template('node/revision.html').render(template.Context({
'title': revision.title,
'html': revision.html,
'tags': revision.tagname_list(),
else:
rev_ctx[i]['summary'] = revision.summary
+ rev_ctx.reverse()
+
return render_to_response('revisions.html', {
'post': post,
'revisions': rev_ctx,