Make start and end nonnull.

This commit is contained in:
Víðir Valberg Guðmundsson 2019-03-18 23:54:06 +01:00
parent 8143e9608c
commit b6052ca89a
1 changed files with 8 additions and 2 deletions

View File

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