From 528eb504540632439e2196f9180b8626c55c27d3 Mon Sep 17 00:00:00 2001 From: Andrey Date: Fri, 21 Apr 2017 21:42:35 +0300 Subject: [PATCH] license: set suspend_date on customer check_license --- project/customer/tasks.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/project/customer/tasks.py b/project/customer/tasks.py index ef9f561..9f5b481 100644 --- a/project/customer/tasks.py +++ b/project/customer/tasks.py @@ -21,8 +21,7 @@ def check_license(): order_status=consts.ORDER_UNPAID, deleted=False) # заморозить неоплаченные в срок счета - # TODO добавить дату заморозки - licenses.update(order_status=consts.ORDER_SUSPENDED) + licenses.update(order_status=consts.ORDER_SUSPENDED, suspend_date=_now.date()) for profile in profiles: try: