diff options
| author | Aymeric Augustin | 2013-11-09 19:05:27 +0100 |
|---|---|---|
| committer | Aymeric Augustin | 2013-11-10 10:39:42 +0100 |
| commit | 631bbd18c10f572e31ef30f4dc78df942beeffd4 (patch) | |
| tree | 39ba5916e0dcb66da58f6d1d86e25ed4b70c9e1c /debug_toolbar/toolbar/loader.py | |
| parent | 0b4fc3e4c30a645e4d7a706d890c74a82c88cb8c (diff) | |
| download | django-debug-toolbar-631bbd18c10f572e31ef30f4dc78df942beeffd4.tar.bz2 | |
Avoid some implicit global lookups.
They made it impossible to preserve panel data after the end of a
request.
Diffstat (limited to 'debug_toolbar/toolbar/loader.py')
| -rw-r--r-- | debug_toolbar/toolbar/loader.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/debug_toolbar/toolbar/loader.py b/debug_toolbar/toolbar/loader.py index c8630a9..7b525b6 100644 --- a/debug_toolbar/toolbar/loader.py +++ b/debug_toolbar/toolbar/loader.py @@ -45,7 +45,7 @@ class DebugToolbar(object): """ global panel_classes for panel_class in panel_classes: - panel_instance = panel_class(context=self.template_context) + panel_instance = panel_class(self, context=self.template_context) self._panels[panel_class] = panel_instance |
