Correct flake8 error

This commit is contained in:
PCoder 2018-09-26 21:23:46 +02:00
parent b021a8ed6e
commit 737681136f
1 changed files with 2 additions and 2 deletions

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({})