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 SituationPage(Page):
|
briefIntroduction = RichTextField(blank=True)
|
makeASpeech = RichTextField(blank=True)
|
|
content_panels = Page.content_panels + [
|
FieldPanel("briefIntroduction", classname="full"),
|
FieldPanel("makeASpeech", classname="full"),
|
]
|