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 ProductIndexPage(SEOablePage):
|
||||
@@ -19,6 +20,7 @@ class ProductIndexPage(SEOablePage):
|
||||
]
|
||||
|
||||
subpage_types = ["products.ProductPage"]
|
||||
api_fields = SEOablePage.api_fields + [APIField("intro")]
|
||||
parent_page_types = ["home.HomePage"]
|
||||
|
||||
class Meta:
|
||||
@@ -60,6 +62,7 @@ class ProductPage(SEOablePage):
|
||||
api_fields = SEOablePage.api_fields + [
|
||||
APIField("summary"),
|
||||
APIField("body"),
|
||||
APIField("cover_image", serializer=SEOImageSerializer()),
|
||||
]
|
||||
|
||||
parent_page_types = ["products.ProductIndexPage"]
|
||||
|
||||
Reference in New Issue
Block a user