feat: expose column intros, page covers and blog tags
This commit is contained in:
@@ -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 CaseStudyIndexPage(SEOablePage):
|
||||
@@ -19,6 +20,7 @@ class CaseStudyIndexPage(SEOablePage):
|
||||
]
|
||||
|
||||
subpage_types = ["cases.CaseStudyPage"]
|
||||
api_fields = SEOablePage.api_fields + [APIField("intro")]
|
||||
parent_page_types = ["home.HomePage"]
|
||||
|
||||
class Meta:
|
||||
@@ -70,6 +72,7 @@ class CaseStudyPage(SEOablePage):
|
||||
APIField("published_at"),
|
||||
APIField("summary"),
|
||||
APIField("body"),
|
||||
APIField("cover_image", serializer=SEOImageSerializer()),
|
||||
]
|
||||
|
||||
parent_page_types = ["cases.CaseStudyIndexPage"]
|
||||
|
||||
Reference in New Issue
Block a user