I'm trying to add the comments framework to a weblog I'm creating in
Django. Adding the comments system appears to be working fine until I
attempt to enable comment moderation.

I add the following code to my models.py as per the instructions on
the django website. My model is called Post which represents a post in
the weblog.

class PostModerator(CommentModerator):
    email_notification = False
    enable_field = 'allow_comments'

moderator.register(Post, PostModerator)

If I attempt to preview the site I get error AlreadyModerated at /
with the exception The model 'post' is already being moderated. I have
no idea why I'm getting this error as I have only just enabled
comments and am not sure why Post would already be moderated.

Happy to post any code if that may help finding the cause. Any help
would be great.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to