diff options
| author | Aymeric Augustin | 2013-11-10 15:31:01 +0100 | 
|---|---|---|
| committer | Aymeric Augustin | 2013-11-10 15:31:01 +0100 | 
| commit | 6ba33adc23afc990243c5aef21a2381670c33da1 (patch) | |
| tree | a344f4e88528dd68f639c15532a23c462c804180 /debug_toolbar/panels/cache.py | |
| parent | 291dff43c0764df3ad12afb1ffc6cd798a939917 (diff) | |
| download | django-debug-toolbar-6ba33adc23afc990243c5aef21a2381670c33da1.tar.bz2 | |
Pass through attributes lookups in CacheStatTracker.
Fix #439.
Diffstat (limited to 'debug_toolbar/panels/cache.py')
| -rw-r--r-- | debug_toolbar/panels/cache.py | 10 | 
1 files changed, 2 insertions, 8 deletions
| diff --git a/debug_toolbar/panels/cache.py b/debug_toolbar/panels/cache.py index 67c8f5a..57da54b 100644 --- a/debug_toolbar/panels/cache.py +++ b/debug_toolbar/panels/cache.py @@ -71,14 +71,8 @@ class CacheStatTracker(BaseCache):      def __contains__(self, key):          return self.cache.__contains__(key) -    def make_key(self, *args, **kwargs): -        return self.cache.make_key(*args, **kwargs) - -    def validate_key(self, *args, **kwargs): -        self.cache.validate_key(*args, **kwargs) - -    def clear(self): -        return self.cache.clear() +    def __getattr__(self, name): +        return getattr(self.cache, name)      @send_signal      def add(self, *args, **kwargs): | 
