Skip to content

Commit

Permalink
fix: fix admin_panel
Browse files Browse the repository at this point in the history
  • Loading branch information
mutantsan committed Sep 18, 2023
1 parent 01111a4 commit 1015990
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions ckanext/mailcraft/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@
import ckan.plugins.toolkit as toolkit
from ckan.common import CKANConfig

if plugins.plugin_loaded("admin_panel"):
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 @@ -20,9 +24,6 @@ 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 1015990

Please sign in to comment.