Skip to content

Commit 36a2f1d

Browse files
committed
Don't add to the request object, because get_current can be used to obtain the current toolbar
1 parent 0ef3919 commit 36a2f1d

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

debug_toolbar/middleware.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -133,8 +133,5 @@ def process_response(self, request, response):
133133
smart_unicode(toolbar.render_toolbar() + self.tag))
134134
if response.get('Content-Length', None):
135135
response['Content-Length'] = len(response.content)
136-
# Add the toolbar to the request object, so that the stats are
137-
# available to subsequent middleware classes.
138-
request.debug_toolbar_stats = toolbar.stats
139136
del self.__class__.debug_toolbars[ident]
140137
return response

0 commit comments

Comments
 (0)