diff options
-rw-r--r-- | app/income/models.py | 3 |
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)) |