1
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

from wagtail.core.models import Page
from wagtail.core.fields import RichTextField
from wagtail.admin.edit_handlers import FieldPanel
from project.common.models import Entity
from django.db import models
class HomePage(Entity):
is_home = True
body = models.CharField(max_length=255)
content_panels = Entity.content_panels + [
FieldPanel('body', classname="full")
]