feat: expose column intros, page covers and blog tags

This commit is contained in:
2026-10-11 19:44:48 +08:00
parent 858f35cf62
commit f2927bae8e
5 changed files with 67 additions and 0 deletions
+3
View File
@@ -7,6 +7,7 @@ from wagtail.search import index
from apps.core.blocks import COMMON_BLOCKS
from apps.core.models import SEOablePage
from apps.core.serializers import SEOImageSerializer
class SolutionIndexPage(SEOablePage):
@@ -19,6 +20,7 @@ class SolutionIndexPage(SEOablePage):
]
subpage_types = ["solutions.SolutionPage"]
api_fields = SEOablePage.api_fields + [APIField("intro")]
parent_page_types = ["home.HomePage"]
class Meta:
@@ -64,6 +66,7 @@ class SolutionPage(SEOablePage):
APIField("industry"),
APIField("summary"),
APIField("body"),
APIField("cover_image", serializer=SEOImageSerializer()),
]
parent_page_types = ["solutions.SolutionIndexPage"]