From 6a8526a93b60ebae214dbe0d4cbf172c311802b9 Mon Sep 17 00:00:00 2001 From: Aymeric Augustin Date: Sun, 10 Nov 2013 15:18:29 +0100 Subject: Remove Panel.disabled, always use Panel.enabled. --- debug_toolbar/panels/__init__.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'debug_toolbar/panels') 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: -- cgit v1.2.3