make unernestaparis visible in forms
This commit is contained in:
parent
73cf39baa8
commit
327ef210db
1 changed files with 12 additions and 3 deletions
|
@ -179,7 +179,13 @@ class UserForm(forms.ModelForm):
|
||||||
class ProfileForm(forms.ModelForm):
|
class ProfileForm(forms.ModelForm):
|
||||||
class Meta:
|
class Meta:
|
||||||
model = CofProfile
|
model = CofProfile
|
||||||
fields = ["phone", "mailing_cof", "mailing_bda", "mailing_bda_revente"]
|
fields = [
|
||||||
|
"phone",
|
||||||
|
"mailing_cof",
|
||||||
|
"mailing_bda",
|
||||||
|
"mailing_bda_revente",
|
||||||
|
"mailing_unernestaparis"
|
||||||
|
]
|
||||||
|
|
||||||
|
|
||||||
class RegistrationUserForm(forms.ModelForm):
|
class RegistrationUserForm(forms.ModelForm):
|
||||||
|
@ -223,6 +229,7 @@ class RegistrationProfileForm(forms.ModelForm):
|
||||||
self.fields['mailing_cof'].initial = True
|
self.fields['mailing_cof'].initial = True
|
||||||
self.fields['mailing_bda'].initial = True
|
self.fields['mailing_bda'].initial = True
|
||||||
self.fields['mailing_bda_revente'].initial = True
|
self.fields['mailing_bda_revente'].initial = True
|
||||||
|
self.fields['mailing_unernestaparis'].initial = True
|
||||||
|
|
||||||
self.fields.keyOrder = [
|
self.fields.keyOrder = [
|
||||||
'login_clipper',
|
'login_clipper',
|
||||||
|
@ -234,6 +241,7 @@ class RegistrationProfileForm(forms.ModelForm):
|
||||||
'mailing_cof',
|
'mailing_cof',
|
||||||
'mailing_bda',
|
'mailing_bda',
|
||||||
'mailing_bda_revente',
|
'mailing_bda_revente',
|
||||||
|
"mailing_unernestaparis",
|
||||||
'comments'
|
'comments'
|
||||||
]
|
]
|
||||||
|
|
||||||
|
@ -241,7 +249,8 @@ class RegistrationProfileForm(forms.ModelForm):
|
||||||
model = CofProfile
|
model = CofProfile
|
||||||
fields = ("login_clipper", "phone", "occupation",
|
fields = ("login_clipper", "phone", "occupation",
|
||||||
"departement", "is_cof", "type_cotiz", "mailing_cof",
|
"departement", "is_cof", "type_cotiz", "mailing_cof",
|
||||||
"mailing_bda", "mailing_bda_revente", "comments")
|
"mailing_bda", "mailing_bda_revente",
|
||||||
|
"mailing_unernestaparis", "comments")
|
||||||
|
|
||||||
|
|
||||||
STATUS_CHOICES = (('no', 'Non'),
|
STATUS_CHOICES = (('no', 'Non'),
|
||||||
|
|
Loading…
Reference in a new issue