From 146f8178429c80512c36b753c0200369532b98c8 Mon Sep 17 00:00:00 2001 From: Todd Dembrey <todd.dembrey@torchbox.com> Date: Tue, 23 Jan 2018 22:21:20 +0000 Subject: [PATCH] Add link to outstanding issue on github about non_field_errors for StreamField --- opentech/apply/funds/blocks.py | 1 + 1 file changed, 1 insertion(+) diff --git a/opentech/apply/funds/blocks.py b/opentech/apply/funds/blocks.py index bf1c36931..52139a54f 100644 --- a/opentech/apply/funds/blocks.py +++ b/opentech/apply/funds/blocks.py @@ -74,6 +74,7 @@ class MustIncludeStatic(StaticBlock): errors = kwargs.pop('errors') if errors: # Pretend the error is a readonly input so that we get nice formatting + # Issue discussed here: https://github.com/wagtail/wagtail/issues/4122 error_message = '<div class="error"><input readonly placeholder="{}"></div>'.format(errors[0]) else: error_message = '' -- GitLab