Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Django 1.3 seems to alter templates' rendering contexts after the fac…
…t, so just make our saved context a clone of the original to be sure we keep all of it. Fixes #159.
  • Loading branch information
rassie committed Jun 23, 2011
commit 264e6813cb4f70c4a8610d69dfbcb11d37d66e71
1 change: 1 addition & 0 deletions debug_toolbar/panels/template.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ def __init__(self, *args, **kwargs):
template_rendered.connect(self._store_template_info)

def _store_template_info(self, sender, **kwargs):
kwargs['context'] = kwargs['context'].__copy__()
self.templates.append(kwargs)

def nav_title(self):
Expand Down