aboutsummaryrefslogtreecommitdiffstats
path: root/debug_toolbar/panels/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'debug_toolbar/panels/__init__.py')
-rw-r--r--debug_toolbar/panels/__init__.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/debug_toolbar/panels/__init__.py b/debug_toolbar/panels/__init__.py
index eb3b21f..d4a61da 100644
--- a/debug_toolbar/panels/__init__.py
+++ b/debug_toolbar/panels/__init__.py
@@ -10,7 +10,12 @@ class DebugPanel(object):
"""
# name = 'Base'
# template = 'debug_toolbar/panels/base.html'
- has_content = False # If content returns something, set to True in subclass
+
+ # If content returns something, set to True in subclass
+ has_content = False
+
+ # This can be set to False in instances if the panel is disabled.
+ enabled = True
# We'll maintain a local context instance so we can expose our template
# context variables to panels which need them: