Create ProductPaymentForm from GenericPaymentForm
This commit is contained in:
		
					parent
					
						
							
								1cdc9ea657
							
						
					
				
			
			
				commit
				
					
						530bbcd5f6
					
				
			
		
					 1 changed files with 8 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -97,6 +97,14 @@ class GenericPaymentForm(forms.Form):
 | 
			
		|||
        return recurring
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
class ProductPaymentForm(GenericPaymentForm):
 | 
			
		||||
    def __init__(self, *args, **kwargs):
 | 
			
		||||
        super(GenericPaymentForm, self).__init__(*args, **kwargs)
 | 
			
		||||
        self.fields['product_name'].widget = forms.TextInput(
 | 
			
		||||
            attrs={'placeholder': _('Product name'), 'readonly': 'readonly'}
 | 
			
		||||
        )
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
class HostingUserSignupForm(forms.ModelForm):
 | 
			
		||||
    confirm_password = forms.CharField(label=_("Confirm Password"),
 | 
			
		||||
                                       widget=forms.PasswordInput())
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue