From 631bbd18c10f572e31ef30f4dc78df942beeffd4 Mon Sep 17 00:00:00 2001 From: Aymeric Augustin Date: Sat, 9 Nov 2013 19:05:27 +0100 Subject: Avoid some implicit global lookups. They made it impossible to preserve panel data after the end of a request. --- debug_toolbar/toolbar/loader.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'debug_toolbar/toolbar/loader.py') 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 -- cgit v1.2.3