Skip to content
Snippets Groups Projects
Commit 1390aeef7481 authored by Samuel Trégouët's avatar Samuel Trégouët
Browse files

[view] write debug info into a `pre` tag

parent 9387dfaca9cc
No related branches found
No related tags found
No related merge requests found
......@@ -114,7 +114,9 @@
children_for=children_for)
if 'debug-es' in self._cw.form:
import json
self.w(unicode(json.dumps(search._s.to_dict())))
self.w(u'<pre>')
self.w(unicode(json.dumps(search._s.to_dict(), indent=2)))
self.w(u'</pre>')
self.w(u'<br/>')
try:
return search.execute()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment