Fix flake8 warnings
This commit is contained in:
		
					parent
					
						
							
								b3e3af1c1a
							
						
					
				
			
			
				commit
				
					
						1100d61b5d
					
				
			
		
					 1 changed files with 3 additions and 3 deletions
				
			
		|  | @ -106,7 +106,7 @@ class ProductPaymentForm(GenericPaymentForm): | ||||||
|         self.fields['product_name'] = forms.CharField( |         self.fields['product_name'] = forms.CharField( | ||||||
|             widget=forms.TextInput( |             widget=forms.TextInput( | ||||||
|                 attrs={'placeholder': _('Product name'), |                 attrs={'placeholder': _('Product name'), | ||||||
|                        'readonly': 'readonly' } |                        'readonly': 'readonly'} | ||||||
|             ) |             ) | ||||||
|         ) |         ) | ||||||
|         if self.product.product_is_subscription: |         if self.product.product_is_subscription: | ||||||
|  | @ -117,9 +117,9 @@ class ProductPaymentForm(GenericPaymentForm): | ||||||
|         else: |         else: | ||||||
|             self.fields['amount'].label = "{amt} ({payment_type})".format( |             self.fields['amount'].label = "{amt} ({payment_type})".format( | ||||||
|                 amt=_('Amount in CHF'), |                 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): |     def clean_amount(self): | ||||||
|         amount = self.cleaned_data.get('amount') |         amount = self.cleaned_data.get('amount') | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue