Skip to content

Commit

Permalink
fix: fix ap conditional support
Browse files Browse the repository at this point in the history
  • Loading branch information
mutantsan committed Sep 15, 2023
1 parent 98a152c commit 01111a4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ckanext/mailcraft/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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)

Expand Down

0 comments on commit 01111a4

Please sign in to comment.