license: fixed left days calculation in get_paid_status

remotes/origin/license
Andrey 9 years ago
parent c387fccefa
commit cf6be643b7
  1. 2
      project/customer/models.py

@ -498,7 +498,7 @@ class License(models.Model):
return u'Лицензия оплачена, ещё не активирована' return u'Лицензия оплачена, ещё не активирована'
elif self.status in [consts.LICENSE_ACTIVE, consts.LICENSE_TEST_PERIOD]: elif self.status in [consts.LICENSE_ACTIVE, consts.LICENSE_TEST_PERIOD]:
left = relativedelta(self.date_to, datetime.today()) left = relativedelta(self.date_to + timedelta(days=1), datetime.today())
if left.months: if left.months:
left_str = u'%d %s %d %s' % ( left_str = u'%d %s %d %s' % (
left.months, left.months,

Loading…
Cancel
Save