2016-11-22 21:50:21 +00:00
|
|
|
from wagtail.wagtailcore.models import Page
|
|
|
|
from wagtail.wagtailcore.fields import RichTextField
|
|
|
|
from wagtail.wagtailadmin.edit_handlers import FieldPanel
|
|
|
|
|
2016-11-25 20:23:02 +00:00
|
|
|
from project.common.models import Entity
|
2016-11-22 21:50:21 +00:00
|
|
|
|
2016-11-25 20:23:02 +00:00
|
|
|
|
|
|
|
class HomePage(Entity):
|
2016-11-24 23:36:52 +00:00
|
|
|
is_home = True
|
2016-11-25 20:23:02 +00:00
|
|
|
|
2016-11-22 21:50:21 +00:00
|
|
|
body = RichTextField(blank=True)
|
|
|
|
|
|
|
|
content_panels = Page.content_panels + [
|
|
|
|
FieldPanel('body', classname="full")
|
|
|
|
]
|