from django.forms import ModelForm
from django import forms
from django.utils.translation import ugettext_lazy as _
from autoentrepreneur.models import UserProfile, AUTOENTREPRENEUR_ACTIVITY, \
    AUTOENTREPRENEUR_PAYMENT_OPTION

class UserProfileForm(ModelForm):
    company_name = forms.CharField(required=False, max_length=255, label=_('Company name'))
    company_id = forms.CharField(max_length=50, label=_('Company id')) # SIRET for France
    bank_information = forms.CharField(required=False, max_length=255, label=_('Bank information'))
    activity = forms.ChoiceField(choices=AUTOENTREPRENEUR_ACTIVITY, label=_('Activity'))
    creation_date = forms.DateField(label=_('Creation date'))
    creation_help = forms.BooleanField(required=False, label=_('Creation help')) # accre
    freeing_tax_payment = forms.BooleanField(required=False, label=_('Freeing tax payment')) # versement liberatoire
    payment_option = forms.ChoiceField(choices=AUTOENTREPRENEUR_PAYMENT_OPTION, label=_('Payment option'))

    class Meta:
        model = UserProfile
        exclude = ['user', 'address']


from django.forms import ModelForm
from django import forms
from django.utils.translation import ugettext_lazy as _
from autoentrepreneur.models import UserProfile, AUTOENTREPRENEUR_ACTIVITY, \
    AUTOENTREPRENEUR_PAYMENT_OPTION

class UserProfileForm(ModelForm):
    company_name = forms.CharField(required=False, max_length=255, label=_('Company name'))
    company_id = forms.CharField(max_length=50, label=_('Company id')) # SIRET for France
    activity = forms.ChoiceField(choices=AUTOENTREPRENEUR_ACTIVITY, label=_('Activity'))
    creation_date = forms.DateField(label=_('Creation date'))
    creation_help = forms.BooleanField(required=False, label=_('Creation help')) # accre
    freeing_tax_payment = forms.BooleanField(required=False, label=_('Freeing tax payment')) # versement liberatoire
    payment_option = forms.ChoiceField(choices=AUTOENTREPRENEUR_PAYMENT_OPTION, label=_('Payment option'))

    class Meta:
        model = UserProfile
        exclude = ['user', 'address']


Remove bank information from form.
Remove bank information from form.
