Blog body is a stream field

This commit is contained in:
Konstantin 2024-03-14 03:53:49 +01:00
parent dbd449b708
commit f96124b744
9 changed files with 54 additions and 5 deletions

5
blog/blocks.py Normal file
View file

@ -0,0 +1,5 @@
from wagtail.blocks import RichTextBlock
from base.blocks import StreamBlock
class BlogPostBlock(StreamBlock):
paragraph = RichTextBlock(blank=True)