diff options
| -rw-r--r-- | debug_toolbar/panels/cache.py | 4 | ||||
| -rw-r--r-- | debug_toolbar/templates/debug_toolbar/panels/cache.html | 6 |
2 files changed, 6 insertions, 4 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') diff --git a/debug_toolbar/templates/debug_toolbar/panels/cache.html b/debug_toolbar/templates/debug_toolbar/panels/cache.html index 8576d3c..8104d99 100644 --- a/debug_toolbar/templates/debug_toolbar/panels/cache.html +++ b/debug_toolbar/templates/debug_toolbar/panels/cache.html @@ -38,8 +38,9 @@ <tr> <th>{% trans "Time" %} (ms)</th> <th>{% trans "Type" %}</th> - <th>{% trans "Parameters" %}</th> <th>{% trans "Function" %}</th> + <th>{% trans "args" %}</th> + <th>{% trans "kwargs" %}</th> </tr> </thead> <tbody> @@ -47,8 +48,9 @@ <tr class="{% cycle 'row1' 'row2' %}"> <td>{{ call_time|floatformat:"4" }}</td> <td>{{ call_type|escape }}</td> - <td>{{ call_args|escape }}, {{ call_kwargs|escape }}</td> <td><acronym title="{{ call_func.0 }}:{{ call_func.1 }}">{{ call_func.2|escape }}</acronym>: {{ call_func.3.0|escape }}</td> + <td>{{ call_args|escape }}</td> + <td>{{ call_kwargs|escape }}</td> </tr> {% endfor %} </tbody> |
