rumine-web/home/models.py

13 lines
287 B
Python
Raw Normal View History

2024-03-13 07:49:06 +01:00
from django.db import models
from wagtail.models import Page
2024-03-17 17:01:04 +01:00
from wagtail.fields import RichTextField
from wagtail.admin.panels import FieldPanel
2024-03-13 07:49:06 +01:00
class HomePage(Page):
2024-03-17 17:01:04 +01:00
body = RichTextField(blank=True)
content_panels = Page.content_panels + [
FieldPanel('body'),
]