hide drafts from future events

This commit is contained in:
2024-11-06 21:33:12 +01:00
parent acf586510e
commit fd88683ee6

View File

@ -44,7 +44,7 @@ class EventIndex(Page):
subpage_types = ["events.EventPage"] subpage_types = ["events.EventPage"]
def future_events(self, info, **kwargs): def future_events(self, info, **kwargs):
return EventPage.objects.future().order_by("next_occurrence") return EventPage.objects.live().future().order_by("next_occurrence")
graphql_fields = [ graphql_fields = [
GraphQLCollection( GraphQLCollection(