Skip to content

Conversation

@tim-schilling
Copy link
Member

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

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