From e330eecd9d249ded67a014e2ec5bcac11201c52a Mon Sep 17 00:00:00 2001 From: Matthijs Kooijman Date: Fri, 14 Nov 2008 14:29:11 +0100 Subject: [PATCH] Allow posting new coments in the admin. This sets comment_form in the context so new comments can be posted in addition to replies. --- influences/admin.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/influences/admin.py b/influences/admin.py index 126cd5c..3b48f93 100644 --- a/influences/admin.py +++ b/influences/admin.py @@ -8,6 +8,7 @@ from threadedcomments.models import ThreadedComment from django.utils.safestring import mark_safe from django.utils.translation import ugettext as _ from django.utils.encoding import force_unicode +from forms import get_influence_comment_form class CharacterAdmin(admin.ModelAdmin): list_filter=('status', 'player') @@ -45,6 +46,7 @@ class InfluenceAdmin(admin.ModelAdmin): 'object' : obj, 'opts' : opts, 'comments' : comments, + 'comment_form' : get_influence_comment_form(request.user.is_staff, None)(), 'media' : mark_safe(self.media), } return render_to_response('admin/influences/influence/comments.html', context, RequestContext(request)) -- 2.30.2