Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {% for block in values %}
- {% if block.block_type == 'features' %}
- {{ block.value.feature.title }}
- class Features_1_Block(blocks.StructBlock):
- title = blocks.CharBlock()
- description = blocks.TextBlock(required=False)
- features = blocks.StreamBlock([
- ('feature', blocks.StructBlock([
- ('icon', blocks.CharBlock()),
- ('title', blocks.CharBlock()),
- ('description', blocks.TextBlock())
- ]))
- ])
- class Meta:
- template = 'streamfield_blocks/features_1.html'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement