Tweak import handler form, some fields not required
those particular fields are for read-only display, not meant for user to provide values. so must provide defaults, else form missing those will not validate.
This commit is contained in:
parent
64acfbcb4e
commit
17251b2c88
|
@ -2,7 +2,7 @@
|
||||||
################################################################################
|
################################################################################
|
||||||
#
|
#
|
||||||
# Rattail -- Retail Software Framework
|
# Rattail -- Retail Software Framework
|
||||||
# Copyright © 2010-2022 Lance Edgar
|
# Copyright © 2010-2023 Lance Edgar
|
||||||
#
|
#
|
||||||
# This file is part of Rattail.
|
# This file is part of Rattail.
|
||||||
#
|
#
|
||||||
|
@ -627,11 +627,14 @@ class ImportHandlerSchema(colander.MappingSchema):
|
||||||
|
|
||||||
class RunJobSchema(colander.MappingSchema):
|
class RunJobSchema(colander.MappingSchema):
|
||||||
|
|
||||||
handler_spec = colander.SchemaNode(colander.String())
|
handler_spec = colander.SchemaNode(colander.String(),
|
||||||
|
missing=colander.null)
|
||||||
|
|
||||||
host_title = colander.SchemaNode(colander.String())
|
host_title = colander.SchemaNode(colander.String(),
|
||||||
|
missing=colander.null)
|
||||||
|
|
||||||
local_title = colander.SchemaNode(colander.String())
|
local_title = colander.SchemaNode(colander.String(),
|
||||||
|
missing=colander.null)
|
||||||
|
|
||||||
models = colander.SchemaNode(colander.List())
|
models = colander.SchemaNode(colander.List())
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue