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
|
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):
|
class HostingUserSignupForm(forms.ModelForm):
|
||||||
confirm_password = forms.CharField(label=_("Confirm Password"),
|
confirm_password = forms.CharField(label=_("Confirm Password"),
|
||||||
widget=forms.PasswordInput())
|
widget=forms.PasswordInput())
|
||||||
|
|
Loading…
Reference in a new issue