aboutsummaryrefslogtreecommitdiffstats
path: root/debug_toolbar/templates
diff options
context:
space:
mode:
authorAymeric Augustin2013-10-16 23:17:59 +0200
committerAymeric Augustin2013-10-17 18:24:58 +0200
commitdc19b418a258bf7d7cabebfe83690b5b0291f60f (patch)
tree0b00913aa6d1fc23b797717002bcf9c20123db27 /debug_toolbar/templates
parent87a73758431a417f6f1aa7313260e1049549f713 (diff)
downloaddjango-debug-toolbar-dc19b418a258bf7d7cabebfe83690b5b0291f60f.tar.bz2
Stopped using dict.iter*.
Since performance isn't a primary concern, the non-iterable versions will do just fine on Python 2.
Diffstat (limited to 'debug_toolbar/templates')
-rw-r--r--debug_toolbar/templates/debug_toolbar/panels/cache.html6
-rw-r--r--debug_toolbar/templates/debug_toolbar/panels/headers.html2
-rw-r--r--debug_toolbar/templates/debug_toolbar/panels/templates.html2
-rw-r--r--debug_toolbar/templates/debug_toolbar/panels/versions.html2
4 files changed, 6 insertions, 6 deletions
diff --git a/debug_toolbar/templates/debug_toolbar/panels/cache.html b/debug_toolbar/templates/debug_toolbar/panels/cache.html
index 889177a..95794d5 100644
--- a/debug_toolbar/templates/debug_toolbar/panels/cache.html
+++ b/debug_toolbar/templates/debug_toolbar/panels/cache.html
@@ -22,14 +22,14 @@
<table>
<thead>
<tr>
- {% for name in counts.iterkeys %}
+ {% for name in counts.keys %}
<th>{{ name }}</th>
{% endfor %}
</tr>
</thead>
<tbody>
<tr>
- {% for value in counts.itervalues %}
+ {% for value in counts.values %}
<td>{{ value }}</td>
{% endfor %}
</tr>
@@ -66,4 +66,4 @@
{% endfor %}
</tbody>
</table>
-{% endif %} \ No newline at end of file
+{% endif %}
diff --git a/debug_toolbar/templates/debug_toolbar/panels/headers.html b/debug_toolbar/templates/debug_toolbar/panels/headers.html
index f251056..981b847 100644
--- a/debug_toolbar/templates/debug_toolbar/panels/headers.html
+++ b/debug_toolbar/templates/debug_toolbar/panels/headers.html
@@ -7,7 +7,7 @@
</tr>
</thead>
<tbody>
- {% for key, value in headers.iteritems %}
+ {% for key, value in headers.items %}
<tr class="{% cycle 'djDebugOdd' 'djDebugEven' %}">
<td>{{ key|escape }}</td>
<td>{{ value|escape }}</td>
diff --git a/debug_toolbar/templates/debug_toolbar/panels/templates.html b/debug_toolbar/templates/debug_toolbar/panels/templates.html
index bde09a9..7e44a46 100644
--- a/debug_toolbar/templates/debug_toolbar/panels/templates.html
+++ b/debug_toolbar/templates/debug_toolbar/panels/templates.html
@@ -31,7 +31,7 @@
<h4>{% blocktrans count context_processors|length as context_processors_count %}Context processor{% plural %}Context processors{% endblocktrans %}</h4>
{% if context_processors %}
<dl>
-{% for key, value in context_processors.iteritems %}
+{% for key, value in context_processors.items %}
<dt><strong>{{ key|escape }}</strong></dt>
<dd>
<div class="djTemplateShowContextDiv"><a class="djTemplateShowContext"><span class="toggleArrow">&#x25B6;</span> {% trans 'Toggle Context' %}</a></div>
diff --git a/debug_toolbar/templates/debug_toolbar/panels/versions.html b/debug_toolbar/templates/debug_toolbar/panels/versions.html
index 283d052..2c614f1 100644
--- a/debug_toolbar/templates/debug_toolbar/panels/versions.html
+++ b/debug_toolbar/templates/debug_toolbar/panels/versions.html
@@ -7,7 +7,7 @@
</tr>
</thead>
<tbody>
- {% for package, version in versions.iteritems %}
+ {% for package, version in versions.items %}
<tr class="{% cycle 'djDebugOdd' 'djDebugEven' %}">
<td>{{ package }}</td>
<td>{{ version }}</td>