POC Campus Condorcet : Traductions des affiliations rappatriees au SSO
This commit is contained in:
parent
e5819877a3
commit
ae4a0a580e
|
@ -116,6 +116,14 @@ class RegistrationForm(forms.Form):
|
|||
self.fields['hote_unite'].widget.attrs['readonly'] = True
|
||||
self.fields['hote_etablissement'].widget.attrs['readonly'] = True
|
||||
|
||||
affiliation = kwargs['initial'].get('ep_primary_affiliation')
|
||||
if affiliation:
|
||||
for engstr, transstr in AFFILIATION_CHOICES:
|
||||
if engstr == affiliation:
|
||||
self.fields['ep_primary_affiliation'].choices = ((engstr, transstr),)
|
||||
break
|
||||
|
||||
|
||||
nom = forms.CharField(max_length=100, label=_("Last name"))
|
||||
prenom = forms.CharField(max_length=100, label=_("First name"))
|
||||
email = forms.CharField(max_length=100, label=_("Email address"))
|
||||
|
|
Reference in New Issue