Merge branch 'dev' into 'master'

Dev

See merge request !327
master
Andrey 8 years ago
commit e259b90908
  1. 4
      finance/views.py

@ -268,7 +268,7 @@ class YandexPay(APIView):
pay = Payment.objects.get(id=pk) pay = Payment.objects.get(id=pk)
try: try:
inv = InvoiceRebilling.objects.get(yandex_pay=pay) inv = InvoiceRebilling.objects.get(yandex_pay=pay)
except InvoiceRebilling: except InvoiceRebilling.DoesNotExist:
inv = None inv = None
r = requests.post('https://money.yandex.ru/eshop.xml', data={ r = requests.post('https://money.yandex.ru/eshop.xml', data={
'shopId': pay.shop_id, 'shopId': pay.shop_id,
@ -483,4 +483,4 @@ class DemoYandexCheckView(YandexCheckView):
class DemoYandexAvisoView(YandexAvisoView): class DemoYandexAvisoView(YandexAvisoView):
pass pass

Loading…
Cancel
Save