Skip to content

Deprecating INTERCEPT_REDIRECTS in favor of DEFAULT_DISABLED_PANELS. #548

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Mar 9, 2014
Merged

Deprecating INTERCEPT_REDIRECTS in favor of DEFAULT_DISABLED_PANELS. #548

merged 3 commits into from
Mar 9, 2014

Conversation

tim-schilling
Copy link
Member

Adding ability to disable panels by config setting for #510.

@@ -57,6 +57,13 @@ toolbar itself, others are specific to some panels.
Toolbar options
~~~~~~~~~~~~~~~

* ``DEFAULT_DISABLED_PANELS``

Default: ``('RedirectsPanel', )``
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you use fully-qualified identifiers as in DEBUG_TOOLBAR_PANELS?

It's technically possible to have two panels with the same class name in different modules. That doesn't happen with built-in panels, but it could happen with external panels.

@aaugustin
Copy link
Contributor

Thanks for the pull request, it looks pretty good. Can you adjust it according to my comments?

@tim-schilling
Copy link
Member Author

@aaugustin Done. However, I did make one more adjustment. I made the definition use a set rather than a tuple. It made more sense to just have it always be a set as there's no need for ordering or duplicates in the collection. Thanks for the thorough review!

aaugustin added a commit that referenced this pull request Mar 9, 2014
Deprecating INTERCEPT_REDIRECTS in favor of DEFAULT_DISABLED_PANELS.
@aaugustin aaugustin merged commit 88712cf into django-commons:master Mar 9, 2014
@aaugustin
Copy link
Contributor

FYI I changed the name of the setting and tweaked the documentation.

ryneeverett pushed a commit to ryneeverett/django-debug-toolbar that referenced this pull request Oct 2, 2016
…ls-by-default-510

Deprecating INTERCEPT_REDIRECTS in favor of DEFAULT_DISABLED_PANELS.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants