make a common stream field, support all block types everywhere
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
from wagtail import blocks
|
||||
from wagtail.fields import StreamField
|
||||
|
||||
from dnscms.blocks import ImageSliderBlock, ImageWithTextBlock
|
||||
|
||||
CommonStreamField = StreamField(
|
||||
[
|
||||
("paragraph", blocks.RichTextBlock(label="Rik tekst")),
|
||||
("image", ImageWithTextBlock(label="Bilde")),
|
||||
("image_slider", ImageSliderBlock(label="Bildegalleri")),
|
||||
],
|
||||
default=[("paragraph", "")],
|
||||
)
|
||||
Reference in New Issue
Block a user