recamshak / django-debug-panel

django-debug-toolbar in WebKit DevTools. Works fine with background Ajax requests and non-HTML responses.
BSD 3-Clause "New" or "Revised" License
404 stars 69 forks source link

handle deprecated get_cache() function #11

Closed muodov closed 9 years ago

muodov commented 9 years ago

Using get_cache() in Django 1.7 or above generates annoying deprecation warning. This function will be removed in Django 1.9. This fix handles Django version and uses appropriate API.

recamshak commented 9 years ago

Thank you for the PR. But, your condition should be the other way around. Also django.VERSION >= (1, 7) seems to be the preferred way to check version number. Anyway, I have fixed the issue now.

muodov commented 9 years ago

Oops. Thank you! :)