diff options
| author | Brandon Konkle | 2011-06-15 18:27:01 -0700 | 
|---|---|---|
| committer | bkonkle | 2011-06-15 20:29:50 -0500 | 
| commit | 75baac10c7f5eba4252c5fda116c318c435b4bae (patch) | |
| tree | 4d402ba77f0656e0d84827e4edcb3ca4ab56fda6 | |
| parent | 8d7683e56362f734da556073e45021f6edc1bf06 (diff) | |
| download | django-debug-toolbar-75baac10c7f5eba4252c5fda116c318c435b4bae.tar.bz2 | |
Refer to the class explicitly instead of using self.__class__ to eliminate problems with subclasses.
| -rw-r--r-- | debug_toolbar/panels/cache.py | 2 | 
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() | 
