diff --git a/debug_toolbar/panels/history/views.py b/debug_toolbar/panels/history/views.py index 3fcbd9b32..fd97fe55e 100644 --- a/debug_toolbar/panels/history/views.py +++ b/debug_toolbar/panels/history/views.py @@ -24,7 +24,7 @@ def history_sidebar(request): for panel in toolbar.panels: if exclude_history and not panel.is_historical: continue - panel_context = {"panel": panel} + panel_context = {"panel": panel, "toolbar": toolbar} context[panel.panel_id] = { "button": render_to_string( "debug_toolbar/includes/panel_button.html", panel_context