From 4d71341c83cffea3ac08ced2d2b552ab2e40c8a5 Mon Sep 17 00:00:00 2001 From: Todd Dembrey <todd.dembrey@torchbox.com> Date: Wed, 15 Aug 2018 10:24:05 +0100 Subject: [PATCH] Improve how the output renders with no response --- opentech/apply/categories/blocks.py | 3 +++ opentech/apply/stream_forms/blocks.py | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/opentech/apply/categories/blocks.py b/opentech/apply/categories/blocks.py index 04d0c64fc..35e9a51f1 100644 --- a/opentech/apply/categories/blocks.py +++ b/opentech/apply/categories/blocks.py @@ -75,3 +75,6 @@ class CategoryQuestionBlock(OptionalFormFieldBlock): def get_searchable_content(self, value, data): return None + + def no_response(self): + return None diff --git a/opentech/apply/stream_forms/blocks.py b/opentech/apply/stream_forms/blocks.py index b0c450dc5..0b850540c 100644 --- a/opentech/apply/stream_forms/blocks.py +++ b/opentech/apply/stream_forms/blocks.py @@ -137,7 +137,7 @@ class CheckboxFieldBlock(FormFieldBlock): def get_searchable_content(self, value, data): return None - def no_responose(self): + def no_response(self): return False -- GitLab