aboutsummaryrefslogtreecommitdiffstats
path: root/debug_toolbar
diff options
context:
space:
mode:
authorJannis Leidel2012-05-13 12:01:05 +0200
committerJannis Leidel2012-05-13 12:01:05 +0200
commitc590c7e1f825e2610f25e5512794aeb24fdf0cd5 (patch)
tree9acef30a5a1ffee534a74e98f5e97b30eaba611e /debug_toolbar
parentde515e2882f1e141865a27292bcda4d394ce601d (diff)
downloaddjango-debug-toolbar-c590c7e1f825e2610f25e5512794aeb24fdf0cd5.tar.bz2
Added a repr for the cache wrapper.
Diffstat (limited to 'debug_toolbar')
-rw-r--r--debug_toolbar/panels/cache.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/debug_toolbar/panels/cache.py b/debug_toolbar/panels/cache.py
index 585521c..e25f08b 100644
--- a/debug_toolbar/panels/cache.py
+++ b/debug_toolbar/panels/cache.py
@@ -58,6 +58,9 @@ class CacheStatTracker(BaseCache):
def __init__(self, cache):
self.cache = cache
+ def __repr__(self):
+ return u"<CacheStatTracker for %s>" % self.cache.__repr__()
+
def _get_func_info(self):
frame = sys._getframe(3)
info = inspect.getframeinfo(frame)