|
|
|
@ -40,7 +40,6 @@ def check_one_profile(profile, License, now_, manual=False): |
|
|
|
email = EmailMessage(subject=subject, to=(user_email,), body=email_body) |
|
|
|
email = EmailMessage(subject=subject, to=(user_email,), body=email_body) |
|
|
|
email.send() |
|
|
|
email.send() |
|
|
|
|
|
|
|
|
|
|
|
# флаг manual=False, если вызов из License.save() |
|
|
|
|
|
|
|
if not manual: |
|
|
|
if not manual: |
|
|
|
licenses_remain = License.objects.filter(company=profile, date_from__gt = now_ + timedelta(days=1), |
|
|
|
licenses_remain = License.objects.filter(company=profile, date_from__gt = now_ + timedelta(days=1), |
|
|
|
status=consts.LICENSE_PAID, deleted=False) |
|
|
|
status=consts.LICENSE_PAID, deleted=False) |
|
|
|
|