chore: updates to the content API (for use in CIBUS)
This commit is contained in:
parent
1b3a2dec72
commit
917695a1da
3 changed files with 11 additions and 1 deletions
|
@ -6,6 +6,7 @@ from modelcluster.fields import ParentalKey, ParentalManyToManyField
|
|||
from modelcluster.contrib.taggit import ClusterTaggableManager
|
||||
from taggit.models import TaggedItemBase
|
||||
from wagtail.api import APIField
|
||||
from wagtail.images.api.fields import ImageRenditionField
|
||||
|
||||
from wagtail.models import Page, Orderable
|
||||
from wagtail.fields import RichTextField, StreamField
|
||||
|
@ -78,6 +79,7 @@ class BlogPage(SeoMixin, Page):
|
|||
# Export fields over the API
|
||||
api_fields = [
|
||||
APIField('gallery_images'),
|
||||
# Adds a URL to a rendered thumbnail of the image to the API
|
||||
APIField('body'),
|
||||
APIField('intro'),
|
||||
APIField('tags'),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue