Commit ba4ab672 authored by gijs's avatar gijs
Browse files

Set subpage and parentpage properties.

parent 70bfb148
......@@ -264,6 +264,9 @@ class ProjectPage(Page):
StreamFieldPanel('body')
]
parent_page_types = ['projects.ProjectIndexPage']
subpage_types = []
class ProjectIndexPage(Page):
def get_context(self, request):
......@@ -271,4 +274,7 @@ class ProjectIndexPage(Page):
projectpages = self.get_children().live().order_by('-first_published_at')
context['projectpages'] = projectpages
return context
parent_page_types = ['home.HomePage']
subpage_types = ['projects.ProjectPage']
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment