Skip to content
Snippets Groups Projects
Commit 146f8178 authored by Todd Dembrey's avatar Todd Dembrey
Browse files

Add link to outstanding issue on github about non_field_errors for StreamField

parent cd7a0238
No related branches found
No related tags found
No related merge requests found
...@@ -74,6 +74,7 @@ class MustIncludeStatic(StaticBlock): ...@@ -74,6 +74,7 @@ class MustIncludeStatic(StaticBlock):
errors = kwargs.pop('errors') errors = kwargs.pop('errors')
if errors: if errors:
# Pretend the error is a readonly input so that we get nice formatting # 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]) error_message = '<div class="error"><input readonly placeholder="{}"></div>'.format(errors[0])
else: else:
error_message = '' error_message = ''
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment