Skip to content

Commit 9aa062b

Browse files
committed
Update cache panel for django 1.3 by implementing every method and providing a cache backend instead of monkeypatching. Also update the template to match SQL Panel a little more.
1 parent 8cb8aba commit 9aa062b

File tree

6 files changed

+191
-102
lines changed

6 files changed

+191
-102
lines changed

debug_toolbar/media/debug_toolbar/css/toolbar.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -357,6 +357,10 @@
357357
text-align: left;
358358
}
359359

360+
#djDebug .djCacheHideStacktraceDiv tbody th {
361+
text-align: left;
362+
}
363+
360364
#djDebug .djSqlExplain td {
361365
white-space: pre;
362366
}

debug_toolbar/media/debug_toolbar/css/toolbar.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

debug_toolbar/media/debug_toolbar/js/toolbar.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,10 @@
6262
djdt.toggle_content($('.djSQLHideStacktraceDiv', $(this).parents('tr')));
6363
return false;
6464
});
65+
$('#djDebugCachePanel a.djCacheShowStacktrace').click(function() {
66+
djdt.toggle_content($('.djCacheHideStacktraceDiv', $(this).parents('tr')));
67+
return false;
68+
});
6569
$('#djHideToolBarButton').click(function() {
6670
djdt.hide_toolbar(true);
6771
return false;

0 commit comments

Comments
 (0)