Skip to content

Commit 8eff2f3

Browse files
committed
Summary: Make sure the TEMPLATE_LOADERS dev hack produces a tuple,
otherwise the tests barf - Legacy-Id: 8989
1 parent a6ff751 commit 8eff2f3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ietf/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -498,7 +498,7 @@ def skip_unreadable_post(record):
498498
# publicly available, for instance from the source repository.
499499
if SERVER_MODE != 'production':
500500
# stomp out the cached template loader, it's annoying
501-
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,))]
501+
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,)))
502502

503503
CACHES = {
504504
'default': {

0 commit comments

Comments
 (0)