Skip to content

Commit 52d8151

Browse files
authored
Merge pull request #34 from AccentDesign/template_tag_messages
added messages to template tag context
2 parents abc3b4d + a3a3df1 commit 52d8151

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

wagtailstreamforms/templatetags/streamforms_tags.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,12 @@ def streamforms_form(context, slug, reference, action='.', **kwargs):
3535
block = WagtailFormBlock()
3636

3737
# take what context we need for the form
38+
# we are adding messages here incase its needed
3839
block_context = {
3940
'invalid_stream_form_reference': context.get('invalid_stream_form_reference'),
4041
'invalid_stream_form': context.get('invalid_stream_form'),
41-
'csrf_token': context.get('csrf_token')
42+
'csrf_token': context.get('csrf_token'),
43+
'messages': context.get('messages')
4244
}
4345

4446
return block.render(block.to_python({

0 commit comments

Comments
 (0)