@ -8,6 +8,16 @@ from wagtail.wagtailcore.models import Page
|
||||
from wagtail_personalisation.models import PersonalisablePageMixin
|
||||
|
||||
|
||||
class RegularPage(Page):
|
||||
subtitle = models.CharField(max_length=255, blank=True, default='')
|
||||
body = RichTextField(blank=True, default='')
|
||||
|
||||
content_panels = Page.content_panels + [
|
||||
FieldPanel('subtitle'),
|
||||
FieldPanel('body'),
|
||||
]
|
||||
|
||||
|
||||
class ContentPage(PersonalisablePageMixin, Page):
|
||||
subtitle = models.CharField(max_length=255, blank=True, default='')
|
||||
body = RichTextField(blank=True, default='')
|
||||
|
Reference in New Issue
Block a user