|
|
|
|
@ -1,5 +1,4 @@ |
|
|
|
|
# -*- coding: utf-8 -*- |
|
|
|
|
|
|
|
|
|
import logging |
|
|
|
|
from datetime import datetime, date |
|
|
|
|
|
|
|
|
|
@ -15,8 +14,9 @@ from lxml.builder import E |
|
|
|
|
from .forms import CheckForm |
|
|
|
|
from .forms import NoticeForm |
|
|
|
|
from .models import Payment |
|
|
|
|
from customer.models import License |
|
|
|
|
|
|
|
|
|
from project.customer.models import License |
|
|
|
|
from project.customer import consts |
|
|
|
|
|
|
|
|
|
logger = logging.getLogger('yandex_money') |
|
|
|
|
|
|
|
|
|
@ -149,5 +149,5 @@ class NoticeFormView(BaseView): |
|
|
|
|
payment.save() |
|
|
|
|
license = License.objects.get(id=payment.order_number) |
|
|
|
|
license.paid_date = date.today() |
|
|
|
|
license.status = 1 |
|
|
|
|
license.status = consts.LICENSE_PAID |
|
|
|
|
license.save() |
|
|
|
|
|