From 01111a4ba5e037179bae8e65acaed92c1f9fd31b Mon Sep 17 00:00:00 2001 From: mutantsan Date: Fri, 15 Sep 2023 15:13:53 +0300 Subject: [PATCH] fix: fix ap conditional support --- ckanext/mailcraft/plugin.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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)