Skip to content
Snippets Groups Projects
Commit f1080b99 authored by Jonathan Weth's avatar Jonathan Weth :keyboard:
Browse files

Merge branch '323-graphqlerror-nonetype-object-has-no-attribute-id' into 'master'

Resolve "GraphQLError: 'NoneType' object has no attribute 'id'"

Closes #323

See merge request !432
parents ee5cd8ab ba972597
No related branches found
No related tags found
1 merge request!432Resolve "GraphQLError: 'NoneType' object has no attribute 'id'"
Pipeline #193691 failed
......@@ -119,9 +119,9 @@ class ExtendParticipationStatusToAbsenceBatchMutation(graphene.Mutation):
return participation, absence
else:
# No base absence, simply create one
# No base absence, simply create one if absence reason is given
data = dict(
reason_id=participation.absence_reason.id,
reason_id=participation.absence_reason.id if participation.absence_reason else None,
person=participation.person,
)
......
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