mirror of
https://github.com/inventree/InvenTree.git
synced 2026-10-07 19:01:17 +00:00
more safer = more better ::inno:
This commit is contained in:
1 file changed
+1
-1
@@ -293,7 +293,7 @@ class PluginAppConfig(AppConfig):
|
|||||||
# clear the registry for that app
|
# clear the registry for that app
|
||||||
# so that the import trick will work on reloading the same plugin
|
# so that the import trick will work on reloading the same plugin
|
||||||
# -> the registry is kept for the whole lifecycle
|
# -> the registry is kept for the whole lifecycle
|
||||||
if models:
|
if models and app_name in apps.all_models:
|
||||||
apps.all_models.pop(app_name)
|
apps.all_models.pop(app_name)
|
||||||
|
|
||||||
# remove plugin from installed_apps
|
# remove plugin from installed_apps
|
||||||
|
|||||||
Reference in new issue
Block a user