Previously, the class itself was passed to the template, which obviously
didn't work.
context = {
'object' : o,
'comments' : comments,
context = {
'object' : o,
'comments' : comments,
- 'comment_form' : get_influence_comment_form(request.user.is_staff, None)
+ 'comment_form' : get_influence_comment_form(request.user.is_staff, None)()
}
return render_to_response('influences/influence_detail.html', context, RequestContext(request))
}
return render_to_response('influences/influence_detail.html', context, RequestContext(request))