2024-03-14 03:53:49 +01:00
|
|
|
from wagtail.blocks import RichTextBlock
|
|
|
|
|
|
|
|
from base.blocks import StreamBlock
|
2024-03-14 04:04:59 +01:00
|
|
|
from wagtailcodeblock.blocks import CodeBlock
|
|
|
|
|
2024-03-14 03:53:49 +01:00
|
|
|
class BlogPostBlock(StreamBlock):
|
2024-03-14 04:04:59 +01:00
|
|
|
paragraph = RichTextBlock(blank=True)
|
|
|
|
code = CodeBlock(label='Code snippet')
|