summaryrefslogtreecommitdiff
path: root/app/income/models.py
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2016-03-09 09:31:02 -0500
committerluxagraf <sng@luxagraf.net>2016-03-09 09:31:02 -0500
commita97bbe27ca114c7fb891d1b039c58e36fec2b007 (patch)
tree6266d325e98176b0291a9a20a13c5daa3f689564 /app/income/models.py
parent0e96ea0803a55db75ecfe323cc43ededcc50c72c (diff)
fixed a bug in my income projection app
Diffstat (limited to 'app/income/models.py')
-rw-r--r--app/income/models.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/income/models.py b/app/income/models.py
index ea0fa5c..9be597d 100644
--- a/app/income/models.py
+++ b/app/income/models.py
@@ -43,4 +43,5 @@ class Gig(models.Model):
def get_pay_date(self):
days = self.publisher.payment_time * 7
- return self.invoice_date + datetime.timedelta(float(days))
+ if self.invoice_date:
+ return self.invoice_date + datetime.timedelta(float(days))