Skip to content

Commit 8653051

Browse files
committed
Django Toolbar XML fix
The SQL Panel produces errors with XHTML documents, because of the `href` attribute in some links without a content. As result, the SQL Panel stays empty and an error occurs on the console. This sets the attributes to an empty content, which is valid XHTML.
1 parent 4e29760 commit 8653051

File tree

1 file changed

+1
-1
lines changed
  • debug_toolbar/templates/debug_toolbar/panels

1 file changed

+1
-1
lines changed

debug_toolbar/templates/debug_toolbar/panels/sql.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
<tr class="djDebugHoverable {% cycle 'djDebugOdd' 'djDebugEven' %}{% if query.is_slow %} djDebugRowWarning{% endif %}{% if query.starts_trans %} djDebugStartTransaction{% endif %}{% if query.ends_trans %} djDebugEndTransaction{% endif %}{% if query.in_trans %} djDebugInTransaction{% endif %}" id="sqlMain_{{ forloop.counter }}">
3030
<td class="djdt-color"><span data-background-color="rgb({{ query.rgb_color|join:", " }})">&#160;</span></td>
3131
<td class="djdt-toggle">
32-
<a class="djToggleSwitch" data-toggle-name="sqlMain" data-toggle-id="{{ forloop.counter }}" data-toggle-open="+" data-toggle-close="-" href>+</a>
32+
<a class="djToggleSwitch" data-toggle-name="sqlMain" data-toggle-id="{{ forloop.counter }}" data-toggle-open="+" data-toggle-close="-" href="">+</a>
3333
</td>
3434
<td class="query">
3535
<div class="djDebugSqlWrap">

0 commit comments

Comments
 (0)