fix round digits
This commit is contained in:
parent
5681a71efd
commit
13652a46d3
2
work.py
2
work.py
|
@ -112,7 +112,7 @@ class Work:
|
||||||
key = getattr(obj, related_field)
|
key = getattr(obj, related_field)
|
||||||
res[name][key.id] = (res[name].get(key.id, Decimal(0)) +
|
res[name][key.id] = (res[name].get(key.id, Decimal(0)) +
|
||||||
val).quantize(
|
val).quantize(
|
||||||
Decimal(str(10.0 ** digits)))
|
Decimal(str(10.0 ** -digits)))
|
||||||
return res
|
return res
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
|
|
Loading…
Reference in New Issue