Skip to content

Commit a03b6a0

Browse files
committed
Merge pull request django-commons#181 from rassie/patch-1
Save a clone of template context instead of the original
2 parents b2e0c98 + 264e681 commit a03b6a0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

debug_toolbar/panels/template.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ def __init__(self, *args, **kwargs):
4747
template_rendered.connect(self._store_template_info)
4848

4949
def _store_template_info(self, sender, **kwargs):
50+
kwargs['context'] = kwargs['context'].__copy__()
5051
self.templates.append(kwargs)
5152

5253
def nav_title(self):

0 commit comments

Comments
 (0)