From 17251b2c88b5e26e7d1f7b0f86e0fec58980b5de Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Sat, 28 Jan 2023 15:54:53 -0600 Subject: [PATCH] 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. --- tailbone/views/importing.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/tailbone/views/importing.py b/tailbone/views/importing.py index 003d7ac4..b3358f23 100644 --- a/tailbone/views/importing.py +++ b/tailbone/views/importing.py @@ -2,7 +2,7 @@ ################################################################################ # # Rattail -- Retail Software Framework -# Copyright © 2010-2022 Lance Edgar +# Copyright © 2010-2023 Lance Edgar # # This file is part of Rattail. # @@ -627,11 +627,14 @@ class ImportHandlerSchema(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())