fix: cast enum as list to satisfy deform widget

seems to only be an issue for deform 2.0.15+
This commit is contained in:
Lance Edgar 2024-07-11 13:54:37 -05:00
parent 09ce2d5a40
commit e531f98079

View file

@ -46,7 +46,7 @@ class ExecutionOptions(colander.Schema):
action = colander.SchemaNode(
colander.String(),
validator=colander.OneOf(ACTION_OPTIONS),
widget=dfwidget.SelectWidget(values=ACTION_OPTIONS.items()))
widget=dfwidget.SelectWidget(values=list(ACTION_OPTIONS.items())))
class HandheldBatchView(FileBatchMasterView):