In the code snippet section the `parent_page_type` class variable should be in plural form `parent_page_types` otherwise it won't have any effect. Link: https://learnwagtail.com/tutorials/restricting-parent-and-child-pages/