18 lines
514 B
Python
18 lines
514 B
Python
from __future__ import absolute_import, unicode_literals
|
|
|
|
from django.db import models
|
|
from wagtail.wagtailadmin.edit_handlers import FieldPanel
|
|
from wagtail.wagtailcore.fields import RichTextField
|
|
|
|
from personalisation.models import PersonalisablePage
|
|
|
|
|
|
class HomePage(PersonalisablePage):
|
|
subtitle = models.CharField(max_length=255)
|
|
body = RichTextField(blank=True, default='')
|
|
|
|
content_panels = PersonalisablePage.content_panels + [
|
|
FieldPanel('subtitle'),
|
|
FieldPanel('body'),
|
|
]
|