I am trying to add comments framework to a weblog I'm making in Django. By the time I try to enable the comment system works fine.
I will add the following code to my models.py According to the instructions given above, my model is called a post which represents a post in weblog.
class post-moderator (comment moderator): email_notification = wrong enabled_field = 'permissions_emends' moderator.register (post, post moderator) if I If I try to preview, then I get an error Already ready with the exception error model 'post' is already being moderated . I do not know why I am getting this error because I have only enabled comments and I am not sure how the post will be moderated first.
There was such a problem today, but I think I have solved it :) In this case it was an issue that the DJGengo was loading the model twice and so twice the comment was trying to register the model for moderation. I fixed it by modifying the code:
Moderator.Register (Post, Post Moderator) From:
If the post is not in the moderator. _ Registry: Moderator.Register (Post, Post Moderator)
Comments
Post a Comment