feat(pages.py): add EventIndexPage

This commit is contained in:
2026-04-22 20:36:22 +02:00
parent daf0b05bb8
commit d70bf79107

View File

@@ -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