Skip to content
Prev Previous commit
Next Next commit
Move the alerts panel below the more used panels.
  • Loading branch information
tim-schilling committed Jul 3, 2024
commit e8dd720b978734641f1fcb58e428e48ddcd08610
2 changes: 1 addition & 1 deletion debug_toolbar/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ def get_config():


PANELS_DEFAULTS = [
"debug_toolbar.panels.alerts.AlertsPanel",
"debug_toolbar.panels.history.HistoryPanel",
"debug_toolbar.panels.versions.VersionsPanel",
"debug_toolbar.panels.timer.TimerPanel",
Expand All @@ -68,6 +67,7 @@ def get_config():
"debug_toolbar.panels.sql.SQLPanel",
"debug_toolbar.panels.staticfiles.StaticFilesPanel",
"debug_toolbar.panels.templates.TemplatesPanel",
"debug_toolbar.panels.alerts.AlertsPanel",
"debug_toolbar.panels.cache.CachePanel",
"debug_toolbar.panels.signals.SignalsPanel",
"debug_toolbar.panels.redirects.RedirectsPanel",
Expand Down
2 changes: 1 addition & 1 deletion docs/configuration.rst
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ included in the toolbar. It works like Django's ``MIDDLEWARE`` setting. The
default value is::

DEBUG_TOOLBAR_PANELS = [
'debug_toolbar.panels.alerts.AlertsPanel',
'debug_toolbar.panels.history.HistoryPanel',
'debug_toolbar.panels.versions.VersionsPanel',
'debug_toolbar.panels.timer.TimerPanel',
Expand All @@ -30,6 +29,7 @@ default value is::
'debug_toolbar.panels.sql.SQLPanel',
'debug_toolbar.panels.staticfiles.StaticFilesPanel',
'debug_toolbar.panels.templates.TemplatesPanel',
'debug_toolbar.panels.alerts.AlertsPanel',
'debug_toolbar.panels.cache.CachePanel',
'debug_toolbar.panels.signals.SignalsPanel',
'debug_toolbar.panels.redirects.RedirectsPanel',
Expand Down
2 changes: 1 addition & 1 deletion tests/panels/test_history.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@ def test_urls(self):
@override_settings(DEBUG=True)
class HistoryViewsTestCase(IntegrationTestCase):
PANEL_KEYS = {
"AlertsPanel",
"VersionsPanel",
"TimerPanel",
"SettingsPanel",
Expand All @@ -76,6 +75,7 @@ class HistoryViewsTestCase(IntegrationTestCase):
"SQLPanel",
"StaticFilesPanel",
"TemplatesPanel",
"AlertsPanel",
"CachePanel",
"SignalsPanel",
"ProfilingPanel",
Expand Down