{% extends "silk/base/detail_base.html" %} {% load silk_filters %} {% load silk_nav %} {% load silk_inclusion %} {% block js %} {{ block.super }} {% endblock %} {% block style %} {{ block.super }} {% endblock %} {% block menu %} {% endblock %} {% block data %}
{{ sql_query.formatted_query|spacify|linebreaksbr }}
{{ sql_query.time_taken }}ms
{{ sql_query.num_joins }} joins
Traceback
The below is the Python stacktrace that leads up the execution of the above SQL query. Use it to figure out where and why this SQL query is being executed and whether or not it's actually neccessary.
{% for ln in traceback %} {% if ln %}
{{ ln }}
{% if forloop.counter == pos %} {% code code actual_line %} {% endif %} {% endif %} {% endfor %}
{% endblock %}