aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRob Hudson2008-09-19 10:47:16 -0700
committerRob Hudson2008-09-19 10:47:16 -0700
commit5a711759e75bfef4788498d9cfaa9fe019bcd15d (patch)
tree83127c5f7dd2b8d2cf79ed0f6b2ed03251c835e0
parenta6b20b9506cabf0f13e95513ea1707ee9e1d5570 (diff)
downloaddjango-debug-toolbar-5a711759e75bfef4788498d9cfaa9fe019bcd15d.tar.bz2
Remove the safe filter from template context so objects don't turn into HTML
tags (e.g. <django.core.paginator.Paginator>)
-rw-r--r--debug_toolbar/templates/debug_toolbar/panels/templates.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/debug_toolbar/templates/debug_toolbar/panels/templates.html b/debug_toolbar/templates/debug_toolbar/panels/templates.html
index 0c47c5c..575d507 100644
--- a/debug_toolbar/templates/debug_toolbar/panels/templates.html
+++ b/debug_toolbar/templates/debug_toolbar/panels/templates.html
@@ -16,10 +16,10 @@
<dd><samp>{{ template.template.origin_name|addslashes }}</samp></dd>
<dd>
<div class="djTemplateShowContextDiv"><a class="djTemplateShowContext">Toggle Context</a></div>
- <div class="djTemplateHideContextDiv" style="display:none;"><pre>{{ template.context|safe }}</pre></div>
+ <div class="djTemplateHideContextDiv" style="display:none;"><pre>{{ template.context }}</pre></div>
</dd>
{% endfor %}
</dl>
{% else %}
None
-{% endif %} \ No newline at end of file
+{% endif %}