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 Meta:
|
||||
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):
|
||||
|
@ -223,6 +229,7 @@ class RegistrationProfileForm(forms.ModelForm):
|
|||
self.fields['mailing_cof'].initial = True
|
||||
self.fields['mailing_bda'].initial = True
|
||||
self.fields['mailing_bda_revente'].initial = True
|
||||
self.fields['mailing_unernestaparis'].initial = True
|
||||
|
||||
self.fields.keyOrder = [
|
||||
'login_clipper',
|
||||
|
@ -234,14 +241,16 @@ class RegistrationProfileForm(forms.ModelForm):
|
|||
'mailing_cof',
|
||||
'mailing_bda',
|
||||
'mailing_bda_revente',
|
||||
"mailing_unernestaparis",
|
||||
'comments'
|
||||
]
|
||||
]
|
||||
|
||||
class Meta:
|
||||
model = CofProfile
|
||||
fields = ("login_clipper", "phone", "occupation",
|
||||
"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'),
|
||||
|
|
Loading…
Reference in a new issue