fix round digits

This commit is contained in:
?ngel ?lvarez 2017-09-13 11:33:38 +02:00
parent 5681a71efd
commit 13652a46d3
1 changed files with 1 additions and 1 deletions

View File

@ -112,7 +112,7 @@ class Work:
key = getattr(obj, related_field)
res[name][key.id] = (res[name].get(key.id, Decimal(0)) +
val).quantize(
Decimal(str(10.0 ** digits)))
Decimal(str(10.0 ** -digits)))
return res
@classmethod