save db reference

This commit is contained in:
Matthias 2021-11-13 00:37:36 +01:00
parent 7e478c332a
commit ab2d758a38
No known key found for this signature in database
GPG Key ID: F50EF5741D33E076

View File

@ -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