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
|
||||
else:
|
||||
end = timezone.now()
|
||||
if 'child' not in attrs and timer.child:
|
||||
if timer.child:
|
||||
attrs['child'] = timer.child
|
||||
|
||||
# Overwrites values provided directly!
|
||||
|
|
Loading…
Reference in New Issue