鉴于以下情况view
:
def comments(request):
comments_list = Thing.objects.filter(thing_type=2)
#Thing model extends MPTTModel
comments_extra_data_list = Data.objects.filter(thing__in=comments_list)
#Data objects have data for each Thing
return render_to_response("comments.html",
{'nodes':comments_list},
context_instance=RequestContext(request))
如何传递comments_extra_data_list
给模板以便在 MPTT 树上显示每个节点的数据?