diff options
Diffstat (limited to 'django/template')
| -rw-r--r-- | django/template/context_processors.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/django/template/context_processors.py b/django/template/context_processors.py index 56d824f0da..0e9efb2f69 100644 --- a/django/template/context_processors.py +++ b/django/template/context_processors.py @@ -43,7 +43,7 @@ def debug(request): # Return a lazy reference that computes connection.queries on access, # to ensure it contains queries triggered after this function runs. context_extras['sql_queries'] = lazy( - lambda: list(itertools.chain(*[connections[x].queries for x in connections])), + lambda: list(itertools.chain.from_iterable(connections[x].queries for x in connections)), list ) return context_extras |
