diff options
| author | David Cramer | 2011-06-10 12:07:43 -0700 |
|---|---|---|
| committer | David Cramer | 2011-06-10 12:07:43 -0700 |
| commit | 0f4e780ebefe2a136f0bf97217c2ee6758cddf26 (patch) | |
| tree | f1567a9d8bcda3e9a193a3a22d36b642038bbc71 | |
| parent | 64edae3d5815f9f865fac001b3a39d57944c6465 (diff) | |
| parent | d505f4975602d79c8d0650068569c524459dc5db (diff) | |
| download | django-debug-toolbar-0f4e780ebefe2a136f0bf97217c2ee6758cddf26.tar.bz2 | |
Merge pull request #174 from maraujop/master
Caught AttributeError while rendering: 'Template' object has no attribute 'origin'
| -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: |
