From 49d564d448e70875b1e89875e31a34af2e49e4ba Mon Sep 17 00:00:00 2001 From: jordan Date: Wed, 16 May 2012 22:57:24 +0000 Subject: [PATCH 1/1] the contributors_info template tag should tag context and pass it git-svn-id: http://svn.osqa.net/svnroot/osqa/trunk@1264 0cfe37f9-358a-4d5e-be75-b63607b5c754 --- forum/templatetags/node_tags.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/forum/templatetags/node_tags.py b/forum/templatetags/node_tags.py index 9e0482f..be54232 100644 --- a/forum/templatetags/node_tags.py +++ b/forum/templatetags/node_tags.py @@ -253,12 +253,13 @@ def _comments(post, user): def comments(post, user): return _comments(post, user) -@register.inclusion_tag("node/contributors_info.html") -def contributors_info(node, verb=None): +@register.inclusion_tag("node/contributors_info.html", takes_context=True) +def contributors_info(context, node, verb=None): return { 'node_verb': verb and verb or ((node.node_type == "question") and _("asked") or ( (node.node_type == "answer") and _("answered") or _("posted"))), 'node': node, + 'context' : context } @register.inclusion_tag("node/reviser_info.html") -- 2.39.5