From ab2d758a3859743cec0eea6974a2ba2cc4ced91c Mon Sep 17 00:00:00 2001 From: Matthias Date: Sat, 13 Nov 2021 00:37:36 +0100 Subject: [PATCH] save db reference --- InvenTree/plugin/apps.py | 1 + 1 file changed, 1 insertion(+) diff --git a/InvenTree/plugin/apps.py b/InvenTree/plugin/apps.py index 3d98a255d3..436fdc738e 100644 --- a/InvenTree/plugin/apps.py +++ b/InvenTree/plugin/apps.py @@ -76,6 +76,7 @@ class PluginAppConfig(AppConfig): plugin = plugin() logger.info(f'Loaded integration plugin {plugin.slug}') plugin.is_package = was_packaged + plugin.pk = plugin_db_setting.pk # safe reference settings.INTEGRATION_PLUGINS[plugin.slug] = plugin