diff options
| author | bkonkle | 2011-09-12 13:11:08 -0500 | 
|---|---|---|
| committer | bkonkle | 2011-09-12 13:11:08 -0500 | 
| commit | 0ef39192ecf7ebc359f3ad3a87fbf962b568397b (patch) | |
| tree | aa9e0f160f9766439358d9ff6beb7a68e76e02c0 | |
| parent | fa317b6758107bf2e75f30c5f86cae280d26ebaa (diff) | |
| download | django-debug-toolbar-0ef39192ecf7ebc359f3ad3a87fbf962b568397b.tar.bz2 | |
Don't add the entire toolbar to the request object, just the stats
| -rw-r--r-- | debug_toolbar/middleware.py | 2 | 
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 | 
