views:

75

answers:

1

Using django comments framework http://docs.djangoproject.com/en/dev/ref/contrib/comments/

Not sure is there option, to make all comments non private before they passed moderation... Looks like all my comments are added to site, just after being posted. really need to change this

+1  A: 

One way to do this would be to write your own comments form which inherits from the django.contrib.comments.forms.CommentForm and rewrite its get_comment_create_data function. WARNING: This code is not tested.

from django.contrib.comments.forms import CommentForm

class MyCommentForm(CommentForm):
    def get_comment_create_data(self):
        dict = super(MyCommentForm, self).get_comment_create_data()
        dict['is_public'] = False
        return dict

You would then hook this form into the comments systems as described in this section http://docs.djangoproject.com/en/dev/ref/contrib/comments/custom/

Mark Lavin