# -*- coding: utf-8 -*-
from ocyan.core.plugins import OcyanPluginConfig


class WagtailTrashConfig(OcyanPluginConfig):
    def contribute_to_installed_apps(self, installed_apps):
        installed_apps.wagtail.append("wagtail_trash")
        installed_apps.ocyan.append("ocyan.plugin.wagtail_trash")
        installed_apps.wagtail.append("wagtail_modeladmin")
        return installed_apps

    def get_spooler_modules(self, modules):
        modules.append("ocyan.plugin.wagtail_trash.spooler")
        return modules
