From 1b18c2d90d0c5f060584850ac437058a9bb6ad27 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Schneider?= Date: Wed, 19 Nov 2014 15:08:15 +0100 Subject: [PATCH] middleware: PythonSettingsMiddleware overload FileBasedTenantSettingBaseMiddleware and not JSONSettingsMiddleware Closes #5972 --- entrouvert/djommon/multitenant/middleware.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/entrouvert/djommon/multitenant/middleware.py b/entrouvert/djommon/multitenant/middleware.py index 49217a1..c6d0c7a 100644 --- a/entrouvert/djommon/multitenant/middleware.py +++ b/entrouvert/djommon/multitenant/middleware.py @@ -167,7 +167,7 @@ class DictAdapter(dict): raise KeyError -class PythonSettingsMiddleware(JSONSettingsMiddleware): +class PythonSettingsMiddleware(FileBasedTenantSettingBaseMiddleware): '''Load settings from a file whose path is given by: os.path.join(settings.TENANT_BASE % schema_name, 'settings.py')