aboutsummaryrefslogtreecommitdiffstats
path: root/debug_toolbar/panels
diff options
context:
space:
mode:
authortschilling2014-02-15 08:59:20 -0500
committertschilling2014-02-15 08:59:20 -0500
commitcc08c0d19bd5d1c7ff2281e3c3e4d92fa932e6d5 (patch)
tree8f73b3d7dfb0c603aacf034e53d95ecaa7210a85 /debug_toolbar/panels
parent1a5108a23d97f2c6d111afaff433df64c2211955 (diff)
downloaddjango-debug-toolbar-cc08c0d19bd5d1c7ff2281e3c3e4d92fa932e6d5.tar.bz2
Changing the collection to be fully qualified names and for it to be a set not a tuple.
Diffstat (limited to 'debug_toolbar/panels')
-rw-r--r--debug_toolbar/panels/__init__.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/debug_toolbar/panels/__init__.py b/debug_toolbar/panels/__init__.py
index e71d7b6..a7e3528 100644
--- a/debug_toolbar/panels/__init__.py
+++ b/debug_toolbar/panels/__init__.py
@@ -5,6 +5,7 @@ import warnings
from django.template.loader import render_to_string
from debug_toolbar import settings as dt_settings
+from debug_toolbar.utils import get_name_from_obj
class Panel(object):
@@ -23,7 +24,7 @@ class Panel(object):
@property
def enabled(self):
# Check to see if settings has a default value for it
- if self.panel_id in dt_settings.CONFIG['DEFAULT_DISABLED_PANELS']:
+ if get_name_from_obj(self) in dt_settings.CONFIG['DEFAULT_DISABLED_PANELS']:
default = 'off'
else:
default = 'on'