license: pay_sum defaults to 0

remotes/origin/license
Andrey 9 years ago
parent c874fe15f0
commit 4d950284a4
  1. 1
      project/customer/managers.py
  2. 3
      project/customer/models.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

@ -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) # бекап статуса лицензии. удалить когда всё будет протестировано

Loading…
Cancel
Save