Python 3.6.8 and django-moderation 0.5.0. I'm using moderation on the cms page model. Basic moderation works - but I don't want to moderate the creation of new pages, only the publishing of existing ones.
I'm trying to achieve this by overriding is_auto_approve but the method never gets called. I'm pretty much just starting on django so any input would be highly appreciated :) this is what I'm trying to do in moderation.py from moderation import moderationfrom moderation.db import ModeratedModelfrom moderation.moderator import GenericModeratorfrom cms.models import Page class PageModerator(GenericModerator): def is_auto_approve(self, obj, user): #...check - no moderation for page creation only for publishing super(PageModerator, self).is_auto_approve(obj, user) moderation.register(Page, PageModerator) -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/6fc9ab4a-65e7-4168-8f63-14b240d60a6b%40googlegroups.com.