{{{
context_extras['sql_queries'] = lazy(lambda: connection.queries, list)
}}}
Expected to represent queries from all connected DB's.
--
Ticket URL: <https://code.djangoproject.com/ticket/26145>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* needs_better_patch: => 0
* needs_tests: => 0
* needs_docs: => 0
--
Ticket URL: <https://code.djangoproject.com/ticket/26145#comment:1>
Comment (by timgraham):
I wonder if there's much value in enhancing that template tag. I think the
[https://django-debug-toolbar.readthedocs.org/en/latest/panels.html#sql
Django debug toolbar] is a better solution these days. Have you tried it?
--
Ticket URL: <https://code.djangoproject.com/ticket/26145#comment:2>
Comment (by inoks):
Yes, sure i use Debug Toolbar as well, but some users like to have simple
solution for monitoring app DB's activity.
--
Ticket URL: <https://code.djangoproject.com/ticket/26145#comment:3>
* type: Bug => Cleanup/optimization
* component: Core (Other) => Template system
* version: 1.9 => master
* stage: Unreviewed => Accepted
Comment:
I'm not enthusiastic about it, but I guess it's fine.
--
Ticket URL: <https://code.djangoproject.com/ticket/26145#comment:4>
* status: new => assigned
* owner: nobody => MounirMesselmeni
--
Ticket URL: <https://code.djangoproject.com/ticket/26145#comment:5>
* has_patch: 0 => 1
--
Ticket URL: <https://code.djangoproject.com/ticket/26145#comment:6>
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"03e1cc930c6a5fbe993fb120e4403f3dd8a7c211" 03e1cc93]:
{{{
#!CommitTicketReference repository=""
revision="03e1cc930c6a5fbe993fb120e4403f3dd8a7c211"
Fixed #26145 -- Made debug context processor return queries for all
databases.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/26145#comment:7>