http://docs.djangoproject.com/en/dev/ref/contrib/comments/moderation/
:
====
# models.py
from django.contrib.comments.moderation import CommentModerator,
moderator
class ItemModerator(CommentModerator):
email_notification = True
enable_field = 'enable_comments'
moderator.register(Item, ItemModerator)
====
I get "The model 'item' is already being moderated." I haven't set up
moderation before, so it's not clear what's triggering this. I do have
an "enable_comments" field on the Item model. Odd that the error puts
"item" in lowercase rather than upper.
Ideas? Thanks.
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
No comments:
Post a Comment