mirror of https://github.com/snachodog/mybuddy.git
Always override child with Timer.child value (#131)
This commit is contained in:
parent
7276dc331a
commit
910aff4d3b
|
@ -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!
|
||||||
|
|
Loading…
Reference in New Issue