From c066623ec4e82ddc62135e8c20b84dc0cc25ad2e Mon Sep 17 00:00:00 2001 From: Fellipe Henrique Date: Fri, 14 Sep 2018 09:44:38 -0300 Subject: [PATCH] Fixing INSTALLED_APPS but not in SHARED_APPS or TENANT_APPS error Signed-off-by: Fellipe Henrique --- tenant_schemas/apps.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/tenant_schemas/apps.py b/tenant_schemas/apps.py index 6b16b621..f8e0d0d8 100644 --- a/tenant_schemas/apps.py +++ b/tenant_schemas/apps.py @@ -21,10 +21,7 @@ def best_practice(app_configs, **kwargs): # Take the app_configs and turn them into *old style* application names. # This is what we expect in the SHARED_APPS and TENANT_APPS settings. - INSTALLED_APPS = [ - config.name - for config in app_configs - ] + INSTALLED_APPS = settings.INSTALLED_APPS if not hasattr(settings, 'TENANT_APPS'): return [Critical('TENANT_APPS setting not set')]