Use render_as_line if item.label is None

This commit is contained in:
Benjamin Dauvergne 2011-11-06 16:39:52 +01:00 committed by Frédéric Péters
parent 5b593c5e3a
commit 5312df6e83
1 changed files with 1 additions and 1 deletions

View File

@ -109,7 +109,7 @@ def graphviz(workflow, url_prefix='', select=None, svg=True,
next_id = status.id
print >>out, 'status%s -> status%s' % (i, next_id)
url = 'status/%s/items/%s/' % (i, item.id)
if hasattr(item, 'label'):
if getattr(item, 'label', None):
label = item.label
if getattr(item, 'by', None):
roles = render_list_of_roles(item.by)