summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorMounir Messelmeni <messelmeni.mounir@gmail.com>2016-04-09 14:09:08 +0200
committerTim Graham <timograham@gmail.com>2016-04-09 11:47:15 -0400
commit03e1cc930c6a5fbe993fb120e4403f3dd8a7c211 (patch)
tree45db45095ba8f50bc7c89162d5327576198e1035 /docs
parent9e3f141701b96b6974b3386f83dc76e70a41377d (diff)
Fixed #26145 -- Made debug context processor return queries for all databases.
Diffstat (limited to 'docs')
-rw-r--r--docs/ref/templates/api.txt9
-rw-r--r--docs/releases/1.10.txt3
2 files changed, 10 insertions, 2 deletions
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
~~~~~