billing address form fixed

This commit is contained in:
Arvind Tiwari 2017-09-08 23:46:29 +05:30
commit de1895d2a0
5 changed files with 113 additions and 103 deletions

View file

@ -113,6 +113,12 @@ class BillingAddressForm(forms.ModelForm):
}
class BillingAddressFormSignup(BillingAddressForm):
name = forms.CharField(label=_('Name'))
email = forms.EmailField(label=_('Email Address'))
field_order = ['name', 'email']
class UserBillingAddressForm(forms.ModelForm):
user = forms.ModelChoiceField(queryset=CustomUser.objects.all(),
widget=forms.HiddenInput())