diff options
| author | Aymeric Augustin | 2013-11-12 21:48:42 +0100 |
|---|---|---|
| committer | Aymeric Augustin | 2013-11-12 22:10:22 +0100 |
| commit | c1d50fc79645c71987ae156d371777dd371c422d (patch) | |
| tree | 16bccc82c28a953a1321c685eaa7b0a5b94d3442 /debug_toolbar/views.py | |
| parent | 02716d9ca2728e33e92806f6ed0b3d9375df53a9 (diff) | |
| download | django-debug-toolbar-c1d50fc79645c71987ae156d371777dd371c422d.tar.bz2 | |
Move store/fetch logic inside the DebugToolbar class.
Diffstat (limited to 'debug_toolbar/views.py')
| -rw-r--r-- | debug_toolbar/views.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/debug_toolbar/views.py b/debug_toolbar/views.py index 83432bf..841d04e 100644 --- a/debug_toolbar/views.py +++ b/debug_toolbar/views.py @@ -13,12 +13,12 @@ from django.utils.translation import ugettext as _ from django.views.decorators.csrf import csrf_exempt from debug_toolbar.forms import SQLSelectForm -from debug_toolbar.toolbar import get_saved_toolbar +from debug_toolbar.toolbar import DebugToolbar def render_panel(request): """Render the contents of a panel""" - toolbar = get_saved_toolbar(int(request.GET['toolbar_id'])) + toolbar = DebugToolbar.fetch(int(request.GET['storage_id'])) if toolbar is None: content = _("Data for this panel isn't available anymore. " "Please reload the page and retry.") |
