Instantiate the new comment form class.
authorMatthijs Kooijman <matthijs@stdin.nl>
Wed, 29 Oct 2008 20:48:21 +0000 (21:48 +0100)
committerMatthijs Kooijman <matthijs@stdin.nl>
Wed, 29 Oct 2008 20:48:21 +0000 (21:48 +0100)
Previously, the class itself was passed to the template, which obviously
didn't work.

influences/views.py

index 6a6f874a7c242d621d5ef595cfc9ebe7bb38b57d..f95cfb4bef28d031b93300261bd3c51cbb044c50 100644 (file)
@@ -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))