From 4398b64282e4b688a365da65068eb172b42d9674 Mon Sep 17 00:00:00 2001 From: Matt Westcott Date: Tue, 16 Sep 2014 11:57:03 +0100 Subject: [PATCH] remove allowed_parent_pages / allowed_subpages. allowed_parent_pages was a (broken) relic of the aborted no-tree add-page interface where you selected page type first and then specify where to put it. In that context, allowed_subpages doesn't make sense because the page you're about to add doesn't have subpages... --- wagtail/wagtailcore/models.py | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/wagtail/wagtailcore/models.py b/wagtail/wagtailcore/models.py index e9afaddea..126c9c923 100644 --- a/wagtail/wagtailcore/models.py +++ b/wagtail/wagtailcore/models.py @@ -573,20 +573,6 @@ class Page(six.with_metaclass(PageBase, MP_Node, ClusterableModel, index.Indexed return [ct for ct in cls.clean_subpage_types() if cls_ct in ct.model_class().clean_parent_page_types()] - @classmethod - def allowed_parent_pages(cls): - """ - Returns the list of pages that this page type can be a subpage of - """ - return Page.objects.filter(content_type__in=cls.allowed_parent_page_types()) - - @classmethod - def allowed_subpages(cls): - """ - Returns the list of pages that this page type can be a parent page of - """ - return Page.objects.filter(content_type__in=cls.allowed_subpage_types()) - @classmethod def get_verbose_name(cls): """