Fix flake8 warnings

This commit is contained in:
PCoder 2018-10-03 23:17:25 +02:00
parent b3e3af1c1a
commit 1100d61b5d

View file

@ -106,7 +106,7 @@ class ProductPaymentForm(GenericPaymentForm):
self.fields['product_name'] = forms.CharField(
widget=forms.TextInput(
attrs={'placeholder': _('Product name'),
'readonly': 'readonly' }
'readonly': 'readonly'}
)
)
if self.product.product_is_subscription:
@ -117,9 +117,9 @@ class ProductPaymentForm(GenericPaymentForm):
else:
self.fields['amount'].label = "{amt} ({payment_type})".format(
amt=_('Amount in CHF'),
payment_type = _('One time payment')
payment_type=_('One time payment')
)
self.fields['recurring'].widget=forms.HiddenInput()
self.fields['recurring'].widget = forms.HiddenInput()
def clean_amount(self):
amount = self.cleaned_data.get('amount')