Skip to content

Latest commit

 

History

History
21 lines (15 loc) · 509 Bytes

basic_card.md

File metadata and controls

21 lines (15 loc) · 509 Bytes

Basic Card

from wagtail.core.models import Page
from wagtail.core.fields import StreamField

from wagtailnhsukfrontend.blocks import CardBasicBlock,

class MyPage(Page):
  body = StreamField([
      ...
      ('basic_card', CardBasicBlock()),
      ...
  ], use_json_field=True)

Reference