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

14 lines
310 B
Python
Raw Normal View History

2018-07-24 20:56:38 +01:00
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")
]