Skip to content

Commit

Permalink
The 'Request Vars' tab of the panel displays the passed arguments and…
Browse files Browse the repository at this point in the history
… thus it was displaying the form as it is: rendering it.
  • Loading branch information
lucasicf committed Apr 5, 2013
1 parent 6f79f0b commit b3df0e4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions debug_toolbar/panels/request_vars.py
Expand Up @@ -41,6 +41,9 @@ def process_response(self, request, response):
try:
match = resolve(self.request.path)
func, args, kwargs = match
# Converting the objects to its string representation
args = tuple(['%s'%arg for arg in args])
kwargs = dict([(key, '%s'%arg) for (key, arg) in kwargs.iteritems()])
view_info['view_func'] = get_name_from_obj(func)
view_info['view_args'] = args
view_info['view_kwargs'] = kwargs
Expand Down

0 comments on commit b3df0e4

Please sign in to comment.