hide drafts from future events
This commit is contained in:
@ -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(
|
||||||
|
Reference in New Issue
Block a user