diff options
| author | Rob Hudson | 2008-09-19 10:32:08 -0700 | 
|---|---|---|
| committer | Rob Hudson | 2008-09-19 10:32:08 -0700 | 
| commit | a6b20b9506cabf0f13e95513ea1707ee9e1d5570 (patch) | |
| tree | 2e40c738bf77813dc3854f76f0f27d7acb7751d3 /debug_toolbar | |
| parent | 41a7cdbc553d3180f0e355a850bda61f0500d7c1 (diff) | |
| parent | 43bb25c874f765800076285e76b2b0ba1460a597 (diff) | |
| download | django-debug-toolbar-a6b20b9506cabf0f13e95513ea1707ee9e1d5570.tar.bz2 | |
Merge branch 'master' of git://github.com/nowells/django-debug-toolbar
Diffstat (limited to 'debug_toolbar')
| -rw-r--r-- | debug_toolbar/panels/template.py | 3 | ||||
| -rw-r--r-- | debug_toolbar/templates/debug_toolbar/panels/templates.html | 2 | 
2 files changed, 4 insertions, 1 deletions
diff --git a/debug_toolbar/panels/template.py b/debug_toolbar/panels/template.py index f02b673..bda6630 100644 --- a/debug_toolbar/panels/template.py +++ b/debug_toolbar/panels/template.py @@ -50,6 +50,9 @@ class TemplateDebugPanel(DebugPanel):              info = {}              # Clean up some info about templates              t = d.get('template', None) +            # Skip templates that we are generating through the debug toolbar. +            if t.name.startswith('debug_toolbar/'): +                continue              if t.origin and t.origin.name:                  t.origin_name = t.origin.name              else: diff --git a/debug_toolbar/templates/debug_toolbar/panels/templates.html b/debug_toolbar/templates/debug_toolbar/panels/templates.html index ee93708..0c47c5c 100644 --- a/debug_toolbar/templates/debug_toolbar/panels/templates.html +++ b/debug_toolbar/templates/debug_toolbar/panels/templates.html @@ -16,7 +16,7 @@  	<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 }}</pre></div> +		<div class="djTemplateHideContextDiv" style="display:none;"><pre>{{ template.context|safe }}</pre></div>  	</dd>  {% endfor %}  </dl>  | 
