|
@@ -5,12 +5,12 @@ from django.db import models
|
|
|
from modelcluster.fields import ParentalKey
|
|
|
from modelcluster.models import ClusterableModel
|
|
|
|
|
|
+from wagtail.contrib.modeladmin.options import (
|
|
|
+ ModelAdmin, ModelAdminGroup, modeladmin_register)
|
|
|
from wagtail.wagtailadmin.edit_handlers import (
|
|
|
FieldPanel, FieldRowPanel, InlinePanel, MultiFieldPanel,
|
|
|
PageChooserPanel, StreamFieldPanel,
|
|
|
)
|
|
|
-from wagtail.contrib.modeladmin.options import (
|
|
|
- ModelAdmin, ModelAdminGroup, modeladmin_register)
|
|
|
from wagtail.wagtailcore.fields import RichTextField, StreamField
|
|
|
from wagtail.wagtailcore.models import Collection, Orderable, Page
|
|
|
from wagtail.wagtailforms.models import AbstractEmailForm, AbstractFormField
|
|
@@ -64,6 +64,21 @@ class People(ClusterableModel):
|
|
|
verbose_name_plural = 'People'
|
|
|
|
|
|
|
|
|
+@register_snippet
|
|
|
+class FooterText(models.Model):
|
|
|
+ body = RichTextField()
|
|
|
+
|
|
|
+ panels = [
|
|
|
+ FieldPanel('body'),
|
|
|
+ ]
|
|
|
+
|
|
|
+ def __str__(self):
|
|
|
+ return "Footer text"
|
|
|
+
|
|
|
+ class Meta:
|
|
|
+ verbose_name_plural = 'Footer Text'
|
|
|
+
|
|
|
+
|
|
|
class AboutLocationRelationship(Orderable, models.Model):
|
|
|
"""
|
|
|
This defines the relationship between the `LocationPage` within the `locations`
|