Skip to content

Commit c543358

Browse files
committed
Move the class variable closer to the store() utility
1 parent 6a00cd7 commit c543358

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

debug_toolbar/toolbar.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,16 +77,16 @@ def render_toolbar(self):
7777
else:
7878
raise
7979

80-
# Handle storing toolbars in memory and fetching them later on
81-
82-
_store = OrderedDict()
83-
8480
def should_render_panels(self):
8581
render_panels = self.config["RENDER_PANELS"]
8682
if render_panels is None:
8783
render_panels = self.request.META["wsgi.multiprocess"]
8884
return render_panels
8985

86+
# Handle storing toolbars in memory and fetching them later on
87+
88+
_store = OrderedDict()
89+
9090
def store(self):
9191
# Store already exists.
9292
if self.store_id:

0 commit comments

Comments
 (0)