I have an issue where I have a StrictBlock within a StreamField:
class DetailsTableBlock(StructBlock):
title = CharBlock(required=False)
description = RichTextBlock(required=False)
table = TableBlock(template="home/blocks/table.html")
class MainStreamBlock(StreamBlock):
....
table = DetailsTableBlock()
The problem occurs when I try to render the table using:
{{ child.value.table }}
all I get is:
{u'data': [[u'test', u'test', u'test'], [u'123', u'asd', u'asd'], [u'123', u'asd', u'asd']], u'first_row_is_table_header': True, u'first_col_is_header': False}
So the question is how can I render html using a StructBlock inside a StreamField? I am using Wagtail 1.7