From 4a22745d884c673d1bd42ffa6ab72efc1e5ebae8 Mon Sep 17 00:00:00 2001 From: Adam Johnson Date: Wed, 24 Nov 2021 10:56:39 +0000 Subject: [PATCH 1/2] Fix settings docs * Remove comment in ``debug_toolbar/settings.py`` that was invalidated in a8fa2cf467d8a8234b16e4bb9f45fbaa60597392. * Fix documented default for ``DISABLE_PANELS``. --- debug_toolbar/settings.py | 6 ------ docs/configuration.rst | 9 ++++++++- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/debug_toolbar/settings.py b/debug_toolbar/settings.py index d8e6868a3..b9d379aa6 100644 --- a/debug_toolbar/settings.py +++ b/debug_toolbar/settings.py @@ -2,12 +2,6 @@ from django.conf import settings -# Always import this module as follows: -# from debug_toolbar import settings [as dt_settings] - -# Don't import directly CONFIG or PANELs, or you will miss changes performed -# with override_settings in tests. - CONFIG_DEFAULTS = { # Toolbar options diff --git a/docs/configuration.rst b/docs/configuration.rst index 7219c8167..084480dde 100644 --- a/docs/configuration.rst +++ b/docs/configuration.rst @@ -54,7 +54,14 @@ Toolbar options * ``DISABLE_PANELS`` - Default: ``{'debug_toolbar.panels.redirects.RedirectsPanel'}`` + Default: + + .. code-block:: python + + { + "debug_toolbar.panels.profiling.ProfilingPanel", + "debug_toolbar.panels.redirects.RedirectsPanel", + } This setting is a set of the full Python paths to each panel that you want disabled (but still displayed) by default. From 6eef528aa42421fbd282d6a8c61d0b3b9d0c19f8 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Wed, 24 Nov 2021 10:58:28 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- debug_toolbar/settings.py | 1 - 1 file changed, 1 deletion(-) diff --git a/debug_toolbar/settings.py b/debug_toolbar/settings.py index b9d379aa6..d512e11ae 100644 --- a/debug_toolbar/settings.py +++ b/debug_toolbar/settings.py @@ -2,7 +2,6 @@ from django.conf import settings - CONFIG_DEFAULTS = { # Toolbar options "DISABLE_PANELS": {