Enable scheduled publishing feature for FooterText snippet

pull/364/head
Sage Abdullah 2022-10-20 09:56:32 +01:00 zatwierdzone przez Thibaud Colas
rodzic f27ed416ea
commit ae3f2f2396
1 zmienionych plików z 8 dodań i 1 usunięć

Wyświetl plik

@ -3,7 +3,13 @@ from __future__ import unicode_literals
from django.db import models from django.db import models
from modelcluster.fields import ParentalKey from modelcluster.fields import ParentalKey
from modelcluster.models import ClusterableModel from modelcluster.models import ClusterableModel
from wagtail.admin.panels import FieldPanel, FieldRowPanel, InlinePanel, MultiFieldPanel from wagtail.admin.panels import (
FieldPanel,
FieldRowPanel,
InlinePanel,
MultiFieldPanel,
PublishingPanel,
)
from wagtail.contrib.forms.models import AbstractEmailForm, AbstractFormField from wagtail.contrib.forms.models import AbstractEmailForm, AbstractFormField
from wagtail.fields import RichTextField, StreamField from wagtail.fields import RichTextField, StreamField
from wagtail.models import Collection, DraftStateMixin, Page, RevisionMixin from wagtail.models import Collection, DraftStateMixin, Page, RevisionMixin
@ -91,6 +97,7 @@ class FooterText(DraftStateMixin, RevisionMixin, models.Model):
panels = [ panels = [
FieldPanel("body"), FieldPanel("body"),
PublishingPanel(),
] ]
def __str__(self): def __str__(self):