diff options
| author | David Cramer | 2011-06-14 12:49:51 -0700 |
|---|---|---|
| committer | David Cramer | 2011-06-14 12:49:51 -0700 |
| commit | 7504141f19ef1bdaaf91d95461dad35ac84b5211 (patch) | |
| tree | e3a110296b02b1f665b0563f9ecfa244ebc8e0b4 /debug_toolbar/panels/template.py | |
| parent | 4ee67a1632f41a873d997ae15ac0a2eccca04430 (diff) | |
| parent | 2480ca97297a101b91e6287e9bd5acd4547e6bbd (diff) | |
| download | django-debug-toolbar-7504141f19ef1bdaaf91d95461dad35ac84b5211.tar.bz2 | |
Merge branch 'master' of github.com:django-debug-toolbar/django-debug-toolbar
Diffstat (limited to 'debug_toolbar/panels/template.py')
| -rw-r--r-- | debug_toolbar/panels/template.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/debug_toolbar/panels/template.py b/debug_toolbar/panels/template.py index 44b8b3e..3c70690 100644 --- a/debug_toolbar/panels/template.py +++ b/debug_toolbar/panels/template.py @@ -78,6 +78,8 @@ class TemplateDebugPanel(DebugPanel): # Skip templates that we are generating through the debug toolbar. if template.name and template.name.startswith('debug_toolbar/'): continue + if not hasattr(template, 'origin'): + continue if template.origin and template.origin.name: template.origin_name = template.origin.name else: |
