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-02 16:45:10 -05:00
parent 9146cdc835
commit e23193b730

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 ProductBatchView(BatchMasterView):