diff options
| author | Jannis Leidel | 2012-03-31 18:44:05 +0200 | 
|---|---|---|
| committer | Jannis Leidel | 2012-03-31 18:44:05 +0200 | 
| commit | 6e9142da8f56689899779ebe6248b40c0b3409cf (patch) | |
| tree | af1eb1843c653c779d5f7f1344f10cbd06adb78b /debug_toolbar/panels/cache.py | |
| parent | 2c7f68d55a6a0c101c41bd23ccb2d0ce9b332e42 (diff) | |
| download | django-debug-toolbar-6e9142da8f56689899779ebe6248b40c0b3409cf.tar.bz2 | |
Fixed merge bugs in the cache panel code.
Diffstat (limited to 'debug_toolbar/panels/cache.py')
| -rw-r--r-- | debug_toolbar/panels/cache.py | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/debug_toolbar/panels/cache.py b/debug_toolbar/panels/cache.py index e3b9dad..cb608d0 100644 --- a/debug_toolbar/panels/cache.py +++ b/debug_toolbar/panels/cache.py @@ -125,11 +125,11 @@ class CacheDebugPanel(DebugPanel):          return _('Cache: %.2fms') % cache.cache.total_time      def nav_subtitle(self): -        cache_calls = len(self.cache.calls) +        cache_calls = len(cache.cache.calls)          return ungettext('%(cache_calls)d call in %(time).2fms',                           '%(cache_calls)d calls in %(time).2fms',                           cache_calls) % {'cache_calls': cache_calls, -                                         'time': self.cache.total_time} +                                         'time': cache.cache.total_time}      def title(self):          return _('Cache Usage') | 
