Correct flake8 error

This commit is contained in:
PCoder 2018-09-26 21:23:46 +02:00
parent b021a8ed6e
commit 737681136f

View file

@ -295,8 +295,8 @@ class PaymentOrderView(FormView):
)
)
product = GenericProduct.objects.all(
product_name=
request.POST['generic_payment_form-product_name']
product_name=request.
POST['generic_payment_form-product_name']
).first()
if product is None:
return JsonResponse({})