diff options
| author | Aymeric Augustin | 2014-06-22 11:32:34 +0200 | 
|---|---|---|
| committer | Aymeric Augustin | 2014-06-22 11:32:34 +0200 | 
| commit | 1bc51edd7612f43a7fa49f44d8650f512002a0f8 (patch) | |
| tree | 168d0c3aa9b65f241d1bc77b59263cb874f892c4 /debug_toolbar/utils.py | |
| parent | f878ec075d94344e2b16c8d21832b422990f65fd (diff) | |
| parent | a450969f03449b909716073cfea6898aa56cf54a (diff) | |
| download | django-debug-toolbar-1bc51edd7612f43a7fa49f44d8650f512002a0f8.tar.bz2 | |
Merge pull request #613 from tim-schilling/prefix-css-classes-604
Prefixing common CSS classes with djdt-
Diffstat (limited to 'debug_toolbar/utils.py')
| -rw-r--r-- | debug_toolbar/utils.py | 10 | 
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 | 
