aboutsummaryrefslogtreecommitdiffstats
path: root/debug_toolbar/utils.py
diff options
context:
space:
mode:
authortschilling2014-06-17 21:13:24 -0400
committertschilling2014-06-17 21:13:24 -0400
commita450969f03449b909716073cfea6898aa56cf54a (patch)
tree168d0c3aa9b65f241d1bc77b59263cb874f892c4 /debug_toolbar/utils.py
parentf878ec075d94344e2b16c8d21832b422990f65fd (diff)
downloaddjango-debug-toolbar-a450969f03449b909716073cfea6898aa56cf54a.tar.bz2
Prefixing common CSS classes with djdt-
Diffstat (limited to 'debug_toolbar/utils.py')
-rw-r--r--debug_toolbar/utils.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/debug_toolbar/utils.py b/debug_toolbar/utils.py
index 0aedb54..e5eef4b 100644
--- a/debug_toolbar/utils.py
+++ b/debug_toolbar/utils.py
@@ -71,11 +71,11 @@ def render_stacktrace(trace):
params = map(escape, frame[0].rsplit(os.path.sep, 1) + list(frame[1:]))
params_dict = dict((six.text_type(idx), v) for idx, v in enumerate(params))
try:
- stacktrace.append('<span class="path">%(0)s/</span>'
- '<span class="file">%(1)s</span>'
- ' in <span class="func">%(3)s</span>'
- '(<span class="lineno">%(2)s</span>)\n'
- ' <span class="code">%(4)s</span>'
+ stacktrace.append('<span class="djdt-path">%(0)s/</span>'
+ '<span class="djdt-file">%(1)s</span>'
+ ' in <span class="djdt-func">%(3)s</span>'
+ '(<span class="djdt-lineno">%(2)s</span>)\n'
+ ' <span class="djdt-code">%(4)s</span>'
% params_dict)
except KeyError:
# This frame doesn't have the expected format, so skip it and move on to the next one