Skip to content

Commit b3df0e4

Browse files
committed
The 'Request Vars' tab of the panel displays the passed arguments and thus it was displaying the form as it is: rendering it.
1 parent 6f79f0b commit b3df0e4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

debug_toolbar/panels/request_vars.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ def process_response(self, request, response):
4141
try:
4242
match = resolve(self.request.path)
4343
func, args, kwargs = match
44+
# Converting the objects to its string representation
45+
args = tuple(['%s'%arg for arg in args])
46+
kwargs = dict([(key, '%s'%arg) for (key, arg) in kwargs.iteritems()])
4447
view_info['view_func'] = get_name_from_obj(func)
4548
view_info['view_args'] = args
4649
view_info['view_kwargs'] = kwargs

0 commit comments

Comments
 (0)