mirror of
				https://github.com/inventree/InvenTree.git
				synced 2025-10-31 13:15:43 +00:00 
			
		
		
		
	more docs
This commit is contained in:
		| @@ -261,8 +261,9 @@ class PluginAppConfig(AppConfig): | |||||||
|                         apps_changed = True |                         apps_changed = True | ||||||
|  |  | ||||||
|             if apps_changed or force_reload: |             if apps_changed or force_reload: | ||||||
|                 # if apps were changed reload |                 # if apps were changed or force loading base apps -> reload | ||||||
|                 if settings.INTEGRATION_APPS_LOADING or force_reload: |                 if settings.INTEGRATION_APPS_LOADING or force_reload: | ||||||
|  |                     # first startup or force loading of base apps -> registry is prob false | ||||||
|                     settings.INTEGRATION_APPS_LOADING = False |                     settings.INTEGRATION_APPS_LOADING = False | ||||||
|                     self._reload_apps(populate=True) |                     self._reload_apps(populate=True) | ||||||
|                 self._reload_apps() |                 self._reload_apps() | ||||||
| @@ -382,8 +383,7 @@ class PluginAppConfig(AppConfig): | |||||||
|                     urlpatterns[index] = url(f'^{PLUGIN_BASE}/', include((integ_urls, 'plugin'))) |                     urlpatterns[index] = url(f'^{PLUGIN_BASE}/', include((integ_urls, 'plugin'))) | ||||||
|         clear_url_caches() |         clear_url_caches() | ||||||
|  |  | ||||||
|     def _reload_apps(self, populate: bool = False): |             # we can not use the built in functions as we need to brute force the registry | ||||||
|         if populate: |  | ||||||
|             apps.app_configs = OrderedDict() |             apps.app_configs = OrderedDict() | ||||||
|             apps.apps_ready = apps.models_ready = apps.loading = apps.ready = False |             apps.apps_ready = apps.models_ready = apps.loading = apps.ready = False | ||||||
|             apps.clear_cache() |             apps.clear_cache() | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user