16 lines
413 B
Python
16 lines
413 B
Python
from project.common.blocks import build_stream_field
|
|
from wagtail.admin.edit_handlers import StreamFieldPanel
|
|
from wagtail.search import index
|
|
from project.common.models import Entity
|
|
|
|
|
|
class BlogPage(Entity):
|
|
body = build_stream_field()
|
|
|
|
search_fields = Entity.search_fields + [
|
|
index.SearchField('body'),
|
|
]
|
|
|
|
content_panels = Entity.content_panels + [
|
|
StreamFieldPanel('body'),
|
|
]
|