diff --git a/opentech/apply/funds/blocks.py b/opentech/apply/funds/blocks.py index bf1c36931c7721fc1069cc22a70ed98aacd56826..52139a54f9eb8e8f35bbf90af7d4e565cc546ef8 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 = ''