1
2
3
4
5
6
7
8
9
10
11
12
13
| from django.db import models
|
| from wagtail.core.models import Page
| from wagtail.core.fields import RichTextField
| from wagtail.admin.edit_handlers import FieldPanel
|
|
| class HomePage(Page):
| body = RichTextField(blank=True)
|
| content_panels = Page.content_panels + [
| FieldPanel("body", classname="full"),
| ]
|
|