Skip to content
Snippets Groups Projects
Commit 8ed36ae5 authored by Hangzhi Yu's avatar Hangzhi Yu
Browse files

Use default value for cancelled value

parent e6e1934f
No related branches found
No related tags found
1 merge request!329Introduce substitution to do list
......@@ -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))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment