Skip to content

Commit 25d97a4

Browse files
committed
Fixed to maintain Django 1.0 compatibility.
1 parent ebdcdc6 commit 25d97a4

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

debug_toolbar/templates/debug_toolbar/panels/request_vars.html

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,13 @@ <h4>{% trans 'View information' %}</h4>
1414
<td>{{ view_func }}</td>
1515
<td>{{ view_args|default:"None" }}</td>
1616
<td>
17-
{% for k, v in view_kwargs.items %}
18-
{{ k }}={{ v }}{% if not forloop.last %}, {% endif %}
19-
{% empty %}
17+
{% if view_kwargs.items %}
18+
{% for k, v in view_kwargs.items %}
19+
{{ k }}={{ v }}{% if not forloop.last %}, {% endif %}
20+
{% endfor %}
21+
{% else %}
2022
None
21-
{% endfor %}
23+
{% endif %}
2224
</td>
2325
</tr>
2426
</tbody>

0 commit comments

Comments
 (0)