1
Fork 0
This repository has been archived on 2023-03-26. You can view files and clone it, but cannot push or open issues or pull requests.
wagtail-website-2018-spike/project/home/models.py

16 lines
393 B
Python
Raw Normal View History

from wagtail.core.models import Page
2018-07-24 20:56:38 +01:00
from wagtail.core.fields import RichTextField
from wagtail.admin.edit_handlers import FieldPanel
from project.common.models import Entity
2018-07-25 08:43:01 +01:00
from django.db import models
2018-07-24 20:56:38 +01:00
class HomePage(Entity):
is_home = True
2018-07-25 08:43:01 +01:00
body = models.CharField(max_length=255)
2018-07-24 20:56:38 +01:00
content_panels = Entity.content_panels + [
FieldPanel('body', classname="full")
]