diff --git a/aleksis/apps/chronos/schema/__init__.py b/aleksis/apps/chronos/schema/__init__.py index d01721598a7ba38f3f0b554643b46f67cb81c499..485481bfbe8e83e51bbdcde9d9cfc6059f352bd0 100644 --- a/aleksis/apps/chronos/schema/__init__.py +++ b/aleksis/apps/chronos/schema/__init__.py @@ -195,7 +195,7 @@ class SubstitutionBatchCreateOrUpdateMutation(graphene.Mutation): amends=amended_lesson_event, subject=substitution.subject, comment=substitution.comment or "", - cancelled=substitution.cancelled, + cancelled=substitution.cancelled or False, ) if substitution.teachers is not None: obj.teachers.set(Person.objects.filter(pk__in=substitution.teachers))