aboutsummaryrefslogtreecommitdiffstats
path: root/debug_toolbar/panels/cache.py
diff options
context:
space:
mode:
authorBrandon Konkle2011-06-15 18:27:01 -0700
committerbkonkle2011-06-15 20:29:50 -0500
commit75baac10c7f5eba4252c5fda116c318c435b4bae (patch)
tree4d402ba77f0656e0d84827e4edcb3ca4ab56fda6 /debug_toolbar/panels/cache.py
parent8d7683e56362f734da556073e45021f6edc1bf06 (diff)
downloaddjango-debug-toolbar-75baac10c7f5eba4252c5fda116c318c435b4bae.tar.bz2
Refer to the class explicitly instead of using self.__class__ to eliminate problems with subclasses.
Diffstat (limited to 'debug_toolbar/panels/cache.py')
-rw-r--r--debug_toolbar/panels/cache.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/debug_toolbar/panels/cache.py b/debug_toolbar/panels/cache.py
index 5617ec2..0562bef 100644
--- a/debug_toolbar/panels/cache.py
+++ b/debug_toolbar/panels/cache.py
@@ -77,7 +77,7 @@ class CacheDebugPanel(DebugPanel):
has_content = True
def __init__(self, *args, **kwargs):
- super(self.__class__, self).__init__(*args, **kwargs)
+ super(CacheDebugPanel, self).__init__(*args, **kwargs)
# This is hackish but to prevent threading issues is somewhat needed
if isinstance(cache.cache, CacheStatTracker):
cache.cache.reset()