From 8eff2f39cf76735cc7b0be6db8ec905be6a1144d Mon Sep 17 00:00:00 2001 From: Ole Laursen Date: Thu, 5 Feb 2015 14:05:10 +0000 Subject: [PATCH] Summary: Make sure the TEMPLATE_LOADERS dev hack produces a tuple, otherwise the tests barf - Legacy-Id: 8989 --- ietf/settings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ietf/settings.py b/ietf/settings.py index 163141a54..8b0432248 100644 --- a/ietf/settings.py +++ b/ietf/settings.py @@ -498,7 +498,7 @@ INSTALLED_APPS += DEV_APPS # publicly available, for instance from the source repository. if SERVER_MODE != 'production': # stomp out the cached template loader, it's annoying - TEMPLATE_LOADERS = [l for e in TEMPLATE_LOADERS for l in (e[1] if isinstance(e, tuple) and "cached.Loader" in e[0] else (e,))] + TEMPLATE_LOADERS = tuple(l for e in TEMPLATE_LOADERS for l in (e[1] if isinstance(e, tuple) and "cached.Loader" in e[0] else (e,))) CACHES = { 'default': {