Skip to content

Commit

Permalink
fix toolbar var miss
Browse files Browse the repository at this point in the history
  • Loading branch information
foundkey committed Apr 12, 2024
1 parent 6d0535f commit 2b4179a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion debug_toolbar/panels/history/views.py
Expand Up @@ -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
Expand Down

0 comments on commit 2b4179a

Please sign in to comment.