diff options
| author | Aymeric Augustin | 2013-11-12 22:05:52 +0100 | 
|---|---|---|
| committer | Aymeric Augustin | 2013-11-12 22:15:50 +0100 | 
| commit | f48039e3bad9e24a59a25ed5636b428e11784da9 (patch) | |
| tree | dbb6471cbf1ceb504d9932639b3ca40a57b89a31 /debug_toolbar/models.py | |
| parent | c1d50fc79645c71987ae156d371777dd371c422d (diff) | |
| download | django-debug-toolbar-f48039e3bad9e24a59a25ed5636b428e11784da9.tar.bz2 | |
Move the logic to load panels inside the DebugToolbar class.
This has the additional advantage of eliminating a side-effect that
happened at import time unnecessarily.
It justified refactoring the way we handle settings and defaults.
Diffstat (limited to 'debug_toolbar/models.py')
| -rw-r--r-- | debug_toolbar/models.py | 5 | 
1 files changed, 0 insertions, 5 deletions
| diff --git a/debug_toolbar/models.py b/debug_toolbar/models.py index d39e7ec..a204b13 100644 --- a/debug_toolbar/models.py +++ b/debug_toolbar/models.py @@ -5,7 +5,6 @@ from django.conf.urls import include, patterns, url  from django.core.urlresolvers import reverse, NoReverseMatch  from django.utils.importlib import import_module -from debug_toolbar.toolbar import load_panel_classes  from debug_toolbar.middleware import DebugToolbarMiddleware @@ -59,7 +58,3 @@ if settings.DEBUG:      patch_internal_ips()      patch_middleware_classes()      patch_root_urlconf() - - -if is_toolbar_middleware_installed(): -    load_panel_classes() | 
