admin: encode graphviz svg (#37827)
This commit is contained in:
parent
e80be39d50
commit
14c43d7fbc
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue