mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
and this also
This commit is contained in:
parent
6c5dd2a5a4
commit
4513ad5ab6
@ -293,6 +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:
|
||||||
apps.all_models.pop(app_name)
|
apps.all_models.pop(app_name)
|
||||||
|
|
||||||
# remove plugin from installed_apps
|
# remove plugin from installed_apps
|
||||||
|
Loading…
Reference in New Issue
Block a user