mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-15 19:45:46 +00:00
and this also
This commit is contained in:
@ -293,7 +293,8 @@ class PluginAppConfig(AppConfig):
|
||||
# clear the registry for that app
|
||||
# so that the import trick will work on reloading the same plugin
|
||||
# -> the registry is kept for the whole lifecycle
|
||||
apps.all_models.pop(app_name)
|
||||
if models:
|
||||
apps.all_models.pop(app_name)
|
||||
|
||||
# remove plugin from installed_apps
|
||||
for plugin in settings.INTEGRATION_APPS_PATHS:
|
||||
|
Reference in New Issue
Block a user