and this also

This commit is contained in:
Matthias 2021-11-17 02:02:23 +01:00
parent 6c5dd2a5a4
commit 4513ad5ab6
No known key found for this signature in database
GPG Key ID: F50EF5741D33E076

View File

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