better readability

This commit is contained in:
Matthias 2021-11-20 18:13:33 +01:00
parent 5f180b61e9
commit 8fbbcb3a8d
No known key found for this signature in database
GPG Key ID: F50EF5741D33E076

View File

@ -268,15 +268,18 @@ class Plugins:
settings.INTEGRATION_APPS_PATHS += [plugin_path]
apps_changed = True
# if apps were changed or force loading base apps -> reload
if apps_changed or force_reload:
# if apps were changed or force loading base apps -> reload
# first startup or force loading of base apps -> registry is prob false
if self.apps_loading or force_reload:
# first startup or force loading of base apps -> registry is prob false
self.apps_loading = False
self._reload_apps(force_reload=True)
self._reload_apps()
# rediscover models/ admin sites
self._reregister_contrib_apps()
# update urls - must be last as models must be registered for creating admin routes
self._update_urls()