From b6052ca89adee2ed6a48766dd85fc7d52044da3b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=AD=C3=B0ir=20Valberg=20Gu=C3=B0mundsson?= Date: Mon, 18 Mar 2019 23:54:06 +0100 Subject: [PATCH] Make start and end nonnull. --- src/program/schema.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/program/schema.py b/src/program/schema.py index 04e428fc..89d03634 100644 --- a/src/program/schema.py +++ b/src/program/schema.py @@ -39,8 +39,14 @@ class EventTrackNode(DjangoObjectType): class EventInstanceNode(DjangoObjectType): - start = graphene.Int(description="When this instance of the event starts. In posix time.") - end = graphene.Int(description="When this instance of the event ends. In posix time.") + start = graphene.Int( + required=True, + description="When this instance of the event starts. In posix time.", + ) + end = graphene.Int( + required=True, + description="When this instance of the event ends. In posix time.", + ) class Meta: model = EventInstance