ojuso-map/apps/map/moderator.py

10 lines
281 B
Python
Raw Normal View History

from moderation import moderation
from moderation.moderator import GenericModerator
from apps.map.models import CaseStudy
class CaseStudyModerator(GenericModerator):
notify_user = True
auto_approve_for_superusers = True
moderation.register(CaseStudy, CaseStudyModerator)