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 = GenericProduct.objects.all(
product_name= product_name=request.
request.POST['generic_payment_form-product_name'] POST['generic_payment_form-product_name']
).first() ).first()
if product is None: if product is None:
return JsonResponse({}) return JsonResponse({})