mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
and safety here too
This commit is contained in:
parent
7c9ba1007d
commit
6c5dd2a5a4
@ -229,7 +229,11 @@ class PluginAppConfig(AppConfig):
|
||||
those register models and admin in their respective objects (e.g. admin.site for admin)
|
||||
"""
|
||||
for plugin_path in settings.INTEGRATION_APPS_PATHS:
|
||||
try:
|
||||
app_config = apps.get_app_config(plugin_path.split('.')[-1])
|
||||
except LookupError:
|
||||
# the plugin was never loaded correctly
|
||||
break
|
||||
|
||||
# reload models if they were set
|
||||
# models_module gets set if models were defined - even after multiple loads
|
||||
|
Loading…
Reference in New Issue
Block a user