From 4d950284a4592f081b1c739eabdcaed1d918de09 Mon Sep 17 00:00:00 2001 From: Andrey Date: Fri, 21 Apr 2017 21:38:48 +0300 Subject: [PATCH] license: pay_sum defaults to 0 --- project/customer/managers.py | 1 - project/customer/models.py | 3 ++- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/project/customer/managers.py b/project/customer/managers.py index d4bbecf..831686d 100644 --- a/project/customer/managers.py +++ b/project/customer/managers.py @@ -84,7 +84,6 @@ class LicenseManager(models.Manager): company=company, date_from = now_.today(), date_to = now_.today() + relativedelta(days = consts.LICENSE_TEST_PERIOD_DAYS - 1), - pay_sum=0, term=consts.LICENSE_TEST_PERIOD_TERM, status=consts.LICENSE_TEST_PERIOD, payform=consts.PAYFORM_FREE diff --git a/project/customer/models.py b/project/customer/models.py index 3d8e111..daf1224 100644 --- a/project/customer/models.py +++ b/project/customer/models.py @@ -428,7 +428,8 @@ class License(models.Model): order_date = models.DateField(u'дата заказа', null=True, blank=True) paid_date = models.DateField(u'дата оплаты', null=True, blank=True) suspend_date = models.DateField(u'дата заморозки', null=True, blank=True) - pay_sum= models.IntegerField(u'сумма оплаты') + pay_sum= models.IntegerField(u'сумма оплаты', blank=True, default=0) + deleted = models.BooleanField(u'удалено', default=False) old_status = models.IntegerField(blank=True, null=True, default=None, editable=False) # бекап статуса лицензии. удалить когда всё будет протестировано