aboutsummaryrefslogtreecommitdiffstats
path: root/debug_toolbar/panels/cache.py
diff options
context:
space:
mode:
authorRob Hudson2008-09-21 22:35:15 -0700
committerRob Hudson2008-09-21 22:35:15 -0700
commitee810109f7dfb8c70278b5c447b4604bccc987a0 (patch)
tree2adde32a29aa1950b50adc359d808e514c16cd95 /debug_toolbar/panels/cache.py
parentee75a75f7e379b492af927b261726bc5d40fdb50 (diff)
downloaddjango-debug-toolbar-ee810109f7dfb8c70278b5c447b4604bccc987a0.tar.bz2
Refactoring middleware and panels so panels have more explicit middleware-like
methods to be more clear when panel processing happens.
Diffstat (limited to 'debug_toolbar/panels/cache.py')
-rw-r--r--debug_toolbar/panels/cache.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/debug_toolbar/panels/cache.py b/debug_toolbar/panels/cache.py
index 263b62b..613d4d9 100644
--- a/debug_toolbar/panels/cache.py
+++ b/debug_toolbar/panels/cache.py
@@ -78,7 +78,7 @@ class CacheDebugPanel(DebugPanel):
name = 'Cache'
has_content = True
- def __init__(self, request):
+ def __init__(self):
# This is hackish but to prevent threading issues is somewhat needed
if isinstance(cache.cache, CacheStatTracker):
cache.cache.reset()
@@ -86,7 +86,6 @@ class CacheDebugPanel(DebugPanel):
else:
self.cache = CacheStatTracker(cache.cache)
cache.cache = self.cache
- super(CacheDebugPanel, self).__init__(request)
def title(self):
return 'Cache: %.2fms' % self.cache.total_time