2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-15 11:35:41 +00:00

turns out we needed that

This commit is contained in:
Matthias
2021-11-17 02:03:03 +01:00
parent e121ad374b
commit 0f321b8e83

View File

@ -298,9 +298,11 @@ class PluginAppConfig(AppConfig):
# remove plugin from installed_apps
for plugin in settings.INTEGRATION_APPS_PATHS:
settings.INSTALLED_APPS.remove(plugin)
if plugin in settings.INSTALLED_APPS:
settings.INSTALLED_APPS.remove(plugin)
# reset load flag and reload apps
settings.INTEGRATION_APPS_PATHS = []
settings.INTEGRATION_APPS_LOADED = False
self._reload_apps()