Skip to content

Commit a0ebcc3

Browse files
committed
Incorporate feedback
1 parent 66fa963 commit a0ebcc3

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

debug_toolbar/panels/templates/panel.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,10 @@ def _store_template_info(self, sender, **kwargs):
8484
template, context = kwargs['template'], kwargs['context']
8585

8686
# Skip templates that we are generating through the debug toolbar.
87-
if (isinstance(template.name, six.string_types) and
88-
template.name.startswith(
89-
tuple(self.toolbar.config['SKIP_TEMPLATE_PREFIXES']))):
87+
if (isinstance(template.name, six.string_types) and (
88+
template.name.startswith('debug_toolbar/') or
89+
template.name.startswith(
90+
tuple(self.toolbar.config['SKIP_TEMPLATE_PREFIXES'])))):
9091
return
9192

9293
context_list = []

debug_toolbar/settings.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,8 @@
3636
'PROFILER_MAX_DEPTH': 10,
3737
'SHOW_TEMPLATE_CONTEXT': True,
3838
'SKIP_TEMPLATE_PREFIXES': (
39-
'debug_toolbar/',
4039
'django/forms/widgets/',
41-
'admin/widgets',
40+
'admin/widgets/',
4241
),
4342
'SQL_WARNING_THRESHOLD': 500, # milliseconds
4443
}

docs/configuration.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ Panel options
172172

173173
* ``SKIP_TEMPLATE_PREFIXES``
174174

175-
Default: ``('debug_toolbar/', 'django/forms/widgets/', 'admin/widgets/')``
175+
Default: ``('django/forms/widgets/', 'admin/widgets/')``
176176

177177
Panel: templates.
178178

0 commit comments

Comments
 (0)