From 36a2f1d85d615db3c8eda65ccbd3ee14702b1397 Mon Sep 17 00:00:00 2001 From: bkonkle Date: Thu, 15 Sep 2011 09:33:51 -0500 Subject: Don't add to the request object, because get_current can be used to obtain the current toolbar --- debug_toolbar/middleware.py | 3 --- 1 file changed, 3 deletions(-) (limited to 'debug_toolbar') 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 -- cgit v1.2.3