From 03e1cc930c6a5fbe993fb120e4403f3dd8a7c211 Mon Sep 17 00:00:00 2001 From: Mounir Messelmeni Date: Sat, 9 Apr 2016 14:09:08 +0200 Subject: Fixed #26145 -- Made debug context processor return queries for all databases. --- docs/ref/templates/api.txt | 9 +++++++-- docs/releases/1.10.txt | 3 +++ 2 files changed, 10 insertions(+), 2 deletions(-) (limited to 'docs') diff --git a/docs/ref/templates/api.txt b/docs/ref/templates/api.txt index 6edc818730..1bfb1f87a5 100644 --- a/docs/ref/templates/api.txt +++ b/docs/ref/templates/api.txt @@ -699,8 +699,13 @@ the request's IP address (``request.META['REMOTE_ADDR']``) is in the you're in :setting:`DEBUG` mode. * ``sql_queries`` -- A list of ``{'sql': ..., 'time': ...}`` dictionaries, representing every SQL query that has happened so far during the request - and how long it took. The list is in order by query and lazily generated - on access. + and how long it took. The list is in order by database alias and then by + query. It's lazily generated on access. + +.. versionchanged:: 1.10 + + In older versions, only the queries for the default database alias were + included. ``django.template.context_processors.i18n`` ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ diff --git a/docs/releases/1.10.txt b/docs/releases/1.10.txt index 490aa30fb7..adae2524da 100644 --- a/docs/releases/1.10.txt +++ b/docs/releases/1.10.txt @@ -414,6 +414,9 @@ Templates * Allowed :tfilter:`dictsort` to order a list of lists by an element at a specified index. +* The :func:`~django.template.context_processors.debug` context processor + contains queries for all database aliases instead of only the default alias. + Tests ~~~~~ -- cgit v1.3