aboutsummaryrefslogtreecommitdiffstats
path: root/debug_toolbar/panels/__init__.py
diff options
context:
space:
mode:
authorAymeric Augustin2013-11-10 15:18:29 +0100
committerAymeric Augustin2013-11-10 15:41:43 +0100
commit6a8526a93b60ebae214dbe0d4cbf172c311802b9 (patch)
tree76c6a384a0a3f042b68d6dc6be2cbc508986c0dd /debug_toolbar/panels/__init__.py
parent8c7a8ec6529063853c9ff36da72a38841ca5e235 (diff)
downloaddjango-debug-toolbar-6a8526a93b60ebae214dbe0d4cbf172c311802b9.tar.bz2
Remove Panel.disabled, always use Panel.enabled.
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: