15 wiersze
282 B
Python
15 wiersze
282 B
Python
|
from django.db import models
|
||
|
|
||
|
from wagtail.models import Page
|
||
|
from wagtail import fields
|
||
|
from wagtail.admin.panels import FieldPanel
|
||
|
|
||
|
|
||
|
|
||
|
class HomePage(Page):
|
||
|
body = fields.RichTextField(blank=True)
|
||
|
|
||
|
content_panels = Page.content_panels + [
|
||
|
FieldPanel('body'),
|
||
|
]
|