Skip to content

Commit

Permalink
Merge pull request dj-stripe#50 from luismmontielg/patch-1
Browse files Browse the repository at this point in the history
Fix for Invoice.status() taking 'closed' state into consideration
  • Loading branch information
pydanny committed Aug 24, 2013
2 parents 5857ab6 + 547ef35 commit df9293a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions djstripe/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -613,6 +613,8 @@ def retry(self):
def status(self):
if self.paid:
return "Paid"
if self.closed:
return "Closed"
return "Open"

@classmethod
Expand Down

0 comments on commit df9293a

Please sign in to comment.