Skip to content

Fix CacheStatTracker for Django 1.3 cache with version #260

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions debug_toolbar/panels/cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ def _get_func_info(self):
stack = inspect.stack()[2]
return (stack[1], stack[2], stack[3], stack[4])

def get(self, key, default=None):
def get(self, key, **kwargs):
t = time.time()
value = self.cache.get(key, default)
value = self.cache.get(key, **kwargs)
this_time = time.time() - t
self.total_time += this_time * 1000
if value is None:
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

setup(
name='django-debug-toolbar',
version='0.9.4',
version='0.9.4.1',
description='A configurable set of panels that display various debug information about the current request/response.',
long_description=open('README.rst').read(),
# Get more strings from http://www.python.org/pypi?:action=list_classifiers
Expand Down