File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -894,6 +894,10 @@ class Meta:
894
894
template = "patterns/molecules/streamfield/stream_block.html"
895
895
896
896
897
+ class StandardPageStoryBlock (StoryBlock ):
898
+ promo = PromoBlock ()
899
+
900
+
897
901
class HomePageStoryBlock (blocks .StreamBlock ):
898
902
showcase = ShowcaseBlock (label = "Standard showcase" )
899
903
homepage_showcase = HomepageShowcaseBlock (label = "Large showcase with icons" )
Original file line number Diff line number Diff line change 18
18
from wagtail .search import index
19
19
from wagtail .snippets .models import register_snippet
20
20
21
- from .blocks import HomePageStoryBlock , StoryBlock
21
+ from .blocks import HomePageStoryBlock , StandardPageStoryBlock
22
22
23
23
24
24
@register_snippet
@@ -173,7 +173,7 @@ class StandardPage(
173
173
):
174
174
template = "patterns/pages/standard/standard_page.html"
175
175
176
- body = StreamField (StoryBlock ())
176
+ body = StreamField (StandardPageStoryBlock ())
177
177
178
178
content_panels = Page .content_panels + [
179
179
FieldPanel ("body" ),
You can’t perform that action at this time.
0 commit comments