aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbkonkle2011-09-15 09:33:51 -0500
committerbkonkle2011-09-15 09:33:51 -0500
commit36a2f1d85d615db3c8eda65ccbd3ee14702b1397 (patch)
tree34dc0c5d1b7adb48fe203c5132ec360252423178
parent0ef39192ecf7ebc359f3ad3a87fbf962b568397b (diff)
downloaddjango-debug-toolbar-36a2f1d85d615db3c8eda65ccbd3ee14702b1397.tar.bz2
Don't add to the request object, because get_current can be used to obtain the current toolbar
-rw-r--r--debug_toolbar/middleware.py3
1 files changed, 0 insertions, 3 deletions
diff --git a/debug_toolbar/middleware.py b/debug_toolbar/middleware.py
index ccd4778..59194dc 100644
--- a/debug_toolbar/middleware.py
+++ b/debug_toolbar/middleware.py
@@ -133,8 +133,5 @@ class DebugToolbarMiddleware(object):
smart_unicode(toolbar.render_toolbar() + self.tag))
if response.get('Content-Length', None):
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_stats = toolbar.stats
del self.__class__.debug_toolbars[ident]
return response