aboutsummaryrefslogtreecommitdiffstats
path: root/debug_toolbar/panels/__init__.py
diff options
context:
space:
mode:
authorAymeric Augustin2013-11-09 19:07:38 +0100
committerAymeric Augustin2013-11-10 10:39:42 +0100
commit2816c6fa2a1613e5eeb7967cde0793019ce62feb (patch)
tree2aaff3c512dd78f9686a81f626cba9702a3bd157 /debug_toolbar/panels/__init__.py
parent631bbd18c10f572e31ef30f4dc78df942beeffd4 (diff)
downloaddjango-debug-toolbar-2816c6fa2a1613e5eeb7967cde0793019ce62feb.tar.bz2
Load the content of panels dynamically.
This should drastically reduce the overhead of the browser toolbar when a page has a complex template structure or many SQL queries. This change is backwards-incompatible for third-party panels because it changes the signature of __init__. The JavaScript could probably be improved; I'm outside my comfort zone.
Diffstat (limited to 'debug_toolbar/panels/__init__.py')
-rw-r--r--debug_toolbar/panels/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/debug_toolbar/panels/__init__.py b/debug_toolbar/panels/__init__.py
index a48b1b3..c830bb2 100644
--- a/debug_toolbar/panels/__init__.py
+++ b/debug_toolbar/panels/__init__.py
@@ -11,7 +11,7 @@ class DebugPanel(object):
"""
# name = 'Base'
# template = 'debug_toolbar/panels/base.html'
- has_content = False # If content returns something, set to true in subclass
+ has_content = False # If content returns something, set to True in subclass
# We'll maintain a local context instance so we can expose our template
# context variables to panels which need them: