diff options
| author | Aymeric Augustin | 2013-11-24 11:38:43 +0100 |
|---|---|---|
| committer | Aymeric Augustin | 2013-11-24 11:40:39 +0100 |
| commit | 03fd1cc81c02a5462aeb4dbce0bfe8a2afdef43d (patch) | |
| tree | fdaa6e529ec07cd49b605269b8c98b4d6ed5568f /debug_toolbar/utils.py | |
| parent | 66e03a53b73b4ab01edd8c430227cb28d0d8fd51 (diff) | |
| download | django-debug-toolbar-03fd1cc81c02a5462aeb4dbce0bfe8a2afdef43d.tar.bz2 | |
Remove HIDE_DJANGO_SQL configuration option.
It was badly named and HIDE_IN_STACKTRACES provides a more general
solution.
The ability to show code in django.contrib but not in django doesn't
seem particularly useful.
Fix #474.
Diffstat (limited to 'debug_toolbar/utils.py')
| -rw-r--r-- | debug_toolbar/utils.py | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/debug_toolbar/utils.py b/debug_toolbar/utils.py index 065c810..d84c79c 100644 --- a/debug_toolbar/utils.py +++ b/debug_toolbar/utils.py @@ -54,12 +54,7 @@ def tidy_stacktrace(stack): """ trace = [] for frame, path, line_no, func_name, text in (f[:5] for f in stack): - s_path = os.path.realpath(path) - # Support hiding of frames -- used in various utilities that provide - # inspection. - if CONFIG['HIDE_DJANGO_SQL'] and django_path in s_path and not 'django/contrib' in s_path: - continue - if omit_path(s_path): + if omit_path(os.path.realpath(path)): continue text = (''.join(force_text(t) for t in text)).strip() if text else '' trace.append((path, line_no, func_name, text)) |
