Skip to content

Commit

Permalink
Merge pull request #1562 from akvo/#1533_finance_info
Browse files Browse the repository at this point in the history
[#1533] Remove pending donations from calculated funds of project
  • Loading branch information
kardan committed May 11, 2015
2 parents 886026b + 59f8f9b commit f2dd7a6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions akvo/rsr/models/project.py
Original file line number Diff line number Diff line change
Expand Up @@ -384,8 +384,8 @@ def get_pledged(self):
).aggregate(Sum('funding_amount'))['funding_amount__sum'] or 0

def get_funds(self):
""" All money given to a project, including pending donations"""
return self.get_donations() + self.get_pending_donations() + self.get_pledged()
""" All money given to a project"""
return self.get_donations() + self.get_pledged()

def update_funds(self):
"Update de-normalized field"
Expand Down

0 comments on commit f2dd7a6

Please sign in to comment.