diff --git a/home/models/pages.py b/home/models/pages.py index 593255a..49c66c0 100644 --- a/home/models/pages.py +++ b/home/models/pages.py @@ -56,6 +56,10 @@ class CourseIndexPage(Page): return context +class EventIndexPage(Page): + subpage_types = ["home.EventPage"] + + class BlogPage(Page): author = models.CharField(max_length=255) image = models.ForeignKey( @@ -309,6 +313,8 @@ class EventPage(Page): help_text="Select users who will be listed as hosts of this event.", ) + parent_page_types = ["home.EventIndexPage"] + def get_context(self, request): context = super().get_context(request) # Occurrence-specific context should be handled in views/templates