Skip to content

Commit c28acbb

Browse files
committed
Get Django docs working again.
One tiny change (a Python 2-> 3 portability thing) that causes a big effect to get the Django interactive docs working again. Note: there seems to be a few more places to fix...
1 parent 6099bba commit c28acbb

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

mathics/web/views.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,6 @@ def query(request):
119119
result = {
120120
'results': [result.get_data() for result in results],
121121
}
122-
123122
if settings.LOG_QUERIES:
124123
query_log.timeout = evaluation.timeout
125124
query_log.result = str(result) # evaluation.results
@@ -309,7 +308,7 @@ def render_doc(request, template_name, context, data=None, ajax=False):
309308
return result
310309

311310
result = {
312-
'content': str(result),
311+
'content': result.getvalue().decode("utf-8"),
313312
}
314313
if data is not None:
315314
result['data'] = data

0 commit comments

Comments
 (0)