From 15fc82fc34edec82c0df47155186ac45acfeb5cf Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Mon, 31 Jan 2022 17:51:03 -0600 Subject: [PATCH] Tweak handling of empty params when generating report not sure there was a compelling reason to use `colander.null` other than that is what pyramid generally does? but `None` seems to work fine for me so far.. (used w/ optional date param) --- tailbone/views/reports.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tailbone/views/reports.py b/tailbone/views/reports.py index c9a14be7..b9850ed6 100644 --- a/tailbone/views/reports.py +++ b/tailbone/views/reports.py @@ -415,7 +415,7 @@ class GenerateReport(View): # allow empty value if param is optional if not param.required: - node.missing = colander.null + node.missing = None # maybe set default value if hasattr(param, 'default'):