2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-18 13:05:42 +00:00

move invenTreePlugin to new class

to enable depreceation
This commit is contained in:
Matthias
2022-01-11 01:41:33 +01:00
parent 52d90cef46
commit 2a7ad93173
6 changed files with 25 additions and 14 deletions

View File

@ -250,9 +250,9 @@ class BaseInvenTreeSetting(models.Model):
plugin = kwargs.pop('plugin', None)
if plugin:
from plugin import InvenTreePlugin
from plugin import InvenTreePluginBase
if issubclass(plugin.__class__, InvenTreePlugin):
if issubclass(plugin.__class__, InvenTreePluginBase):
plugin = plugin.plugin_config()
kwargs['plugin'] = plugin