This commit is contained in:
Konstantin 2024-03-23 16:50:24 +01:00
parent 8f5d475dd4
commit bc2be24e7e
9 changed files with 325 additions and 6 deletions

File diff suppressed because one or more lines are too long

View file

@ -3,8 +3,10 @@ from django.db import models
from wagtail.models import Page
from wagtail.fields import RichTextField
from wagtail.admin.panels import FieldPanel, MultiFieldPanel
from wagtailseo.models import SeoMixin
class HomePage(Page):
class HomePage(SeoMixin, Page):
image = models.ForeignKey(
"wagtailimages.Image",
null=True,
@ -46,3 +48,5 @@ class HomePage(Page):
),
FieldPanel('body'),
]
promote_panels = SeoMixin.seo_panels