div id orm-debug-head href onclick orm-debug-body toggle return false

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
<div id="orm-debug-head">
<a href="#" onclick="$('#orm-debug-body').toggle(); return false;">debug</a>
sql count: {{ query_count }}, sql time: {{ query_time }}
</div>
<div id="orm-debug-body">
{% for query in queries %}
<div class="code">
<div class="query-info">time: {{ query.time }}</div>
<div>{{ query.sql|safe|linebreaks }}</div>
</div>
{% endfor %}
</div>