From b800110b297131b94419d1597eb9b95de2c59664 Mon Sep 17 00:00:00 2001 From: j Date: Thu, 16 Feb 2017 14:27:20 +0100 Subject: [PATCH] tostring returns bytes... --- pandora/app/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandora/app/views.py b/pandora/app/views.py index 9fbff09c..a63ccfb6 100644 --- a/pandora/app/views.py +++ b/pandora/app/views.py @@ -83,7 +83,7 @@ def opensearch_xml(request): e.attrib['template'] = "%s?q={searchTerms}" % request.build_absolute_uri('/opensearch_suggest') ''' return HttpResponse( - '\n' + ET.tostring(osd), + '\n' + ET.tostring(osd).decode(), 'application/xml' )