From 0ef39192ecf7ebc359f3ad3a87fbf962b568397b Mon Sep 17 00:00:00 2001 From: bkonkle Date: Mon, 12 Sep 2011 13:11:08 -0500 Subject: Don't add the entire toolbar to the request object, just the stats --- debug_toolbar/middleware.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'debug_toolbar') 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 -- cgit v1.2.3