diff options
| author | Jon Dufresne <jon.dufresne@gmail.com> | 2017-04-25 21:04:10 -0700 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2017-04-26 10:54:20 -0400 |
| commit | 92bc7272711536bb36c2190fcd3476de04e713ee (patch) | |
| tree | 2bdf530382438a57053dcda473727b3af150dfd3 /django/template | |
| parent | 309c10c2cbfdedd0967940b429567b35e95fb070 (diff) | |
Replaced temporary lists used for passing arguments with iterables.
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 |
