license: revert left days calculation in get_paid_status ... not sure how this should work

remotes/origin/license
Andrey 9 years ago
parent 19c8029f65
commit faca1ac8cd
  1. 2
      project/customer/models.py

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

Loading…
Cancel
Save