From 0752691ea8a2907408ddd09f8305f1371f2a2219 Mon Sep 17 00:00:00 2001 From: Matthijs Kooijman Date: Wed, 29 Oct 2008 21:48:21 +0100 Subject: [PATCH] Instantiate the new comment form class. Previously, the class itself was passed to the template, which obviously didn't work. --- influences/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/influences/views.py b/influences/views.py index 6a6f874..f95cfb4 100644 --- a/influences/views.py +++ b/influences/views.py @@ -176,7 +176,7 @@ def influence_detail(request, object_id): 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)) -- 2.30.2