Skip to content

Commit

Permalink
Fixed a bug, recently introduced, that turned the sessions list into …
Browse files Browse the repository at this point in the history
…a tuple of

that list which broke rendering of sessions in the Request Vars panel.
  • Loading branch information
robhudson committed Sep 24, 2009
1 parent 1e772af commit 6fe43e4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions debug_toolbar/panels/request_vars.py
Expand Up @@ -10,10 +10,10 @@ class RequestVarsDebugPanel(DebugPanel):

def nav_title(self):
return 'Request Vars'

def title(self):
return 'Request Vars'

def url(self):
return ''

Expand All @@ -27,6 +27,6 @@ def content(self):
'cookies': [(k, self.request.COOKIES.get(k)) for k in self.request.COOKIES.iterkeys()],
}
if hasattr(self.request, 'session'):
context['session'] = [(k, self.request.session.get(k)) for k in self.request.session.iterkeys()],
context['session'] = [(k, self.request.session.get(k)) for k in self.request.session.iterkeys()]

return render_to_string('debug_toolbar/panels/request_vars.html', context)

0 comments on commit 6fe43e4

Please sign in to comment.