Always override child with Timer.child value (#131)

This commit is contained in:
Christopher C. Wells 2020-03-14 13:24:00 -07:00 committed by Christopher Charbonneau Wells
parent 7276dc331a
commit 910aff4d3b
1 changed files with 1 additions and 1 deletions

View File

@ -59,7 +59,7 @@ class CoreModelWithDurationSerializer(CoreModelSerializer):
end = timer.end end = timer.end
else: else:
end = timezone.now() end = timezone.now()
if 'child' not in attrs and timer.child: if timer.child:
attrs['child'] = timer.child attrs['child'] = timer.child
# Overwrites values provided directly! # Overwrites values provided directly!