Skip to content

Caught AttributeError while rendering: 'Template' object has no attribute 'origin' #174

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 10, 2011
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Fixes TemplateDebugPanel iterating over an unknown template without o…
…rigin or name
  • Loading branch information
maraujop committed Jun 9, 2011
commit ab01a82b42a1e3641a79d4d14e8c96b03ba47298
2 changes: 2 additions & 0 deletions debug_toolbar/panels/template.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,8 @@ def content(self):
# Skip templates that we are generating through the debug toolbar.
if template.name and template.name.startswith('debug_toolbar/'):
continue
if template.name == "<Unknown Template>":
continue
if template.origin and template.origin.name:
template.origin_name = template.origin.name
else:
Expand Down