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:
parent
9146cdc835
commit
e23193b730
|
@ -46,7 +46,7 @@ class ExecutionOptions(colander.Schema):
|
||||||
action = colander.SchemaNode(
|
action = colander.SchemaNode(
|
||||||
colander.String(),
|
colander.String(),
|
||||||
validator=colander.OneOf(ACTION_OPTIONS),
|
validator=colander.OneOf(ACTION_OPTIONS),
|
||||||
widget=dfwidget.SelectWidget(values=ACTION_OPTIONS.items()))
|
widget=dfwidget.SelectWidget(values=list(ACTION_OPTIONS.items())))
|
||||||
|
|
||||||
|
|
||||||
class ProductBatchView(BatchMasterView):
|
class ProductBatchView(BatchMasterView):
|
||||||
|
|
Loading…
Reference in a new issue