backoffice: expand .items() to list (#36515)

This commit is contained in:
Frédéric Péters 2019-11-13 09:52:25 +01:00
parent 82cc9a3a98
commit 259c62a197
1 changed files with 1 additions and 1 deletions

View File

@ -159,7 +159,7 @@ class FormFillPage(PublicFormFillPage):
r += htmltext('<div class="submit-channel-selection" style="display: none;">')
r += htmltext('<h3>%s</h3>') % _('Channel')
r += htmltext('<select>')
for channel_key, channel_label in [('', '-')] + FormData.get_submission_channels().items():
for channel_key, channel_label in [('', '-')] + list(FormData.get_submission_channels().items()):
selected = ''
if self.selected_submission_channel == channel_key:
selected = 'selected="selected"'