From faca1ac8cd6d269619872802b8304e07ca20def5 Mon Sep 17 00:00:00 2001 From: Andrey Date: Fri, 31 Mar 2017 03:17:34 +0300 Subject: [PATCH] license: revert left days calculation in get_paid_status ... not sure how this should work --- project/customer/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/project/customer/models.py b/project/customer/models.py index 4f14805..82a4858 100644 --- a/project/customer/models.py +++ b/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,