From: Matthijs Kooijman Date: Wed, 29 Oct 2008 20:48:21 +0000 (+0100) Subject: Instantiate the new comment form class. X-Git-Url: https://git.stderr.nl/gitweb?a=commitdiff_plain;h=0752691ea8a2907408ddd09f8305f1371f2a2219;p=matthijs%2Fprojects%2Fxerxes.git Instantiate the new comment form class. Previously, the class itself was passed to the template, which obviously didn't work. --- 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))