From 99dabb50b3a8b04090fee34679a70bfe0ae02b5a Mon Sep 17 00:00:00 2001 From: Andrey Date: Thu, 9 Nov 2017 15:56:30 +0300 Subject: [PATCH] =?UTF-8?q?=D0=AF=D0=BD=D0=B4=D0=B5=D0=BA=D1=81=20=D0=B4?= =?UTF-8?q?=D0=B5=D0=BD=D1=8C=D0=B3=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- finance/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/finance/views.py b/finance/views.py index cefeda4..69a1676 100644 --- a/finance/views.py +++ b/finance/views.py @@ -46,7 +46,7 @@ class BillListView(APIView): i['yandex_pay'] = None if i['method'] == 'Y' and i['status'] == 'P': i['yandex_pay'], _is_create = Payment.objects.get_or_create( - order_amount=i['price'].price, + order_amount=i['price'], order_number=bill_obj.id, customer_number=bill_obj.user.id, user=bill_obj.user,