admin: encode graphviz svg (#37827)

This commit is contained in:
Frédéric Péters 2019-11-20 16:12:36 +01:00
parent e80be39d50
commit 14c43d7fbc
1 changed files with 2 additions and 2 deletions

View File

@ -24,7 +24,7 @@ import textwrap
import xml.etree.ElementTree as ET
from django.utils import six
from django.utils.encoding import force_bytes, force_text
from django.utils.encoding import force_bytes
from django.utils.six import StringIO
from quixote import redirect, get_publisher
@ -118,7 +118,7 @@ def graphviz_post_treatment(content, colours, include=False):
remove_tag(root, TITLE)
for child in root:
adjust_style(child, child, colours)
return force_text(ET.tostring(tree))
return force_str(ET.tostring(tree))
def graphviz(workflow, url_prefix='', select=None, svg=True,
include=False):