aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbkonkle2011-09-12 13:11:08 -0500
committerbkonkle2011-09-12 13:11:08 -0500
commit0ef39192ecf7ebc359f3ad3a87fbf962b568397b (patch)
treeaa9e0f160f9766439358d9ff6beb7a68e76e02c0
parentfa317b6758107bf2e75f30c5f86cae280d26ebaa (diff)
downloaddjango-debug-toolbar-0ef39192ecf7ebc359f3ad3a87fbf962b568397b.tar.bz2
Don't add the entire toolbar to the request object, just the stats
-rw-r--r--debug_toolbar/middleware.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/debug_toolbar/middleware.py b/debug_toolbar/middleware.py
index 03b2804..ccd4778 100644
--- a/debug_toolbar/middleware.py
+++ b/debug_toolbar/middleware.py
@@ -135,6 +135,6 @@ class DebugToolbarMiddleware(object):
response['Content-Length'] = len(response.content)
# Add the toolbar to the request object, so that the stats are
# available to subsequent middleware classes.
- request.debug_toolbar = toolbar
+ request.debug_toolbar_stats = toolbar.stats
del self.__class__.debug_toolbars[ident]
return response