diff --git a/ckanext/mailcraft/plugin.py b/ckanext/mailcraft/plugin.py index 8ef13dd..9b7b2ec 100644 --- a/ckanext/mailcraft/plugin.py +++ b/ckanext/mailcraft/plugin.py @@ -8,9 +8,6 @@ import ckan.plugins.toolkit as toolkit from ckan.common import CKANConfig -import ckanext.admin_panel.types as ap_types -from ckanext.admin_panel.interfaces import IAdminPanel - import ckanext.mailcraft.config as mc_config from ckanext.mailcraft.mailer import DefaultMailer @@ -23,6 +20,9 @@ class MailcraftPlugin(plugins.SingletonPlugin): plugins.implements(plugins.IConfigurable) if plugins.plugin_loaded("admin_panel"): + import ckanext.admin_panel.types as ap_types + from ckanext.admin_panel.interfaces import IAdminPanel + plugins.implements(plugins.IBlueprint) plugins.implements(IAdminPanel, inherit=True)