Skip to content

Commit d505f49

Browse files
committed
Checking if the origin attribute exists on the Template object instead
1 parent ab01a82 commit d505f49

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

debug_toolbar/panels/template.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ def content(self):
7878
# Skip templates that we are generating through the debug toolbar.
7979
if template.name and template.name.startswith('debug_toolbar/'):
8080
continue
81-
if template.name == "<Unknown Template>":
81+
if not hasattr(template, 'origin'):
8282
continue
8383
if template.origin and template.origin.name:
8484
template.origin_name = template.origin.name

0 commit comments

Comments
 (0)