Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
owocki committed Jan 7, 2019
1 parent 5c0f5f7 commit 1ea5957
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/grants/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"""
import logging
from datetime import timedelta
from decimal import Decimal

from django.conf import settings
from django.contrib.postgres.fields import JSONField
Expand Down Expand Up @@ -601,7 +602,7 @@ def successful_contribution(self, tx_id):
grant = self.grant
value_usdt = self.value_usdt
if value_usdt:
grant.amount_received += value_usdt
grant.amount_received += Decimal(value_usdt)

grant.save()
successful_contribution(self.grant, self, contribution)
Expand Down

0 comments on commit 1ea5957

Please sign in to comment.