From b3aa256efdcd37385b0f372a2f83bad91013d35c Mon Sep 17 00:00:00 2001 From: Alexey Yushin Date: Mon, 26 Oct 2020 19:06:07 +0100 Subject: [PATCH] wagtail-react-streamfield compatibility Fixes https://github.com/labd/wagtailstreamforms/issues/117 --- wagtailstreamforms/blocks.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/wagtailstreamforms/blocks.py b/wagtailstreamforms/blocks.py index 841107e2..21a541d2 100644 --- a/wagtailstreamforms/blocks.py +++ b/wagtailstreamforms/blocks.py @@ -8,12 +8,8 @@ class InfoBlock(blocks.CharBlock): - def render_form(self, value, prefix="", errors=None): - field = self.field - shown_value = value if value else field.help_text - return mark_safe( - '
%s
' % shown_value - ) + def render_form(self, value, **kwargs): + return super().render_form(value if value else self.field.help_text, **kwargs) class FormChooserBlock(blocks.ChooserBlock):