Summary: Make sure the TEMPLATE_LOADERS dev hack produces a tuple,

otherwise the tests barf
 - Legacy-Id: 8989
This commit is contained in:
Ole Laursen 2015-02-05 14:05:10 +00:00
parent a6ff751f20
commit 8eff2f39cf

View file

@ -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': {