add support for previewing pages

This commit is contained in:
ponas committed 2026-05-19 17:48:33 +02:00
1 parent f91c67f526
commit a5ebb897f1
25 files changed
+471 -67

No files matched your search

+2 -1
View File
@@ -10,9 +10,10 @@ from wagtail.admin.panels import (
PageChooserPanel,
)
from wagtail.models import Orderable, Page
from wagtail_headless_preview.models import HeadlessMixin
class HomePage(Page):
class HomePage(HeadlessMixin, Page):
max_count = 1
content_panels = Page.content_panels + [