workflows: expand items as list (#36515)

This commit is contained in:
Frédéric Péters 2019-11-15 11:36:40 +01:00
parent ca35deba02
commit c3057f76bd
1 changed files with 1 additions and 1 deletions

View File

@ -138,7 +138,7 @@ class DispatchWorkflowStatusItem(WorkflowStatusItem):
self.parent.parent.roles = {}
form.add(SingleSelectWidget, '%srole_key' % prefix,
title=_('Function to Set'), value=self.role_key,
options=[(None, '----')] + self.parent.parent.roles.items())
options=[(None, '----')] + list(self.parent.parent.roles.items()))
dispatch_types = collections.OrderedDict(
[('manual', _('Simple')), ('automatic', _('Multiple'))])
if 'dispatch_type' in parameters: