About Page Structure Restrictions in Wagtail

You can restrict a certain page type structure with Wagtail by setting max_count, parent_page_types, and/or subpage_types for each page type, e.g.:

from wagtail.models import Page

class HomePage(Page):
    # ...
    max_count = 1
    parent_page_types = ["wagtailcore.Page"]
    subpage_types = [
        "standard_pages.StandardPage",
        "form_pages.FormPage",
    ]

Tips and Tricks Programming Development Django 5.2 Django 4.2 Wagtail 7