From 910aff4d3b344108a3302187398e144b817c88d8 Mon Sep 17 00:00:00 2001 From: "Christopher C. Wells" Date: Sat, 14 Mar 2020 13:24:00 -0700 Subject: [PATCH] Always override child with Timer.child value (#131) --- api/serializers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/serializers.py b/api/serializers.py index 7e6156cf..2cc9347f 100644 --- a/api/serializers.py +++ b/api/serializers.py @@ -59,7 +59,7 @@ class CoreModelWithDurationSerializer(CoreModelSerializer): end = timer.end else: end = timezone.now() - if 'child' not in attrs and timer.child: + if timer.child: attrs['child'] = timer.child # Overwrites values provided directly!