POC Campus Condorcet : description de l'etablissement membre envoyee a wcs
This commit is contained in:
parent
2a001c212e
commit
c2cbc47f7d
|
@ -108,6 +108,10 @@ class Declare(FormView):
|
|||
if post_dict.get('ep_principal_name', '') == '':
|
||||
wcs_rest_data['ep_principal_name'] = generate_eppn(
|
||||
post_dict.get('nom',''))
|
||||
if post_dict.get('s_etablissement', '') != '':
|
||||
code_etablissement = post_dict['s_etablissement']
|
||||
wcs_rest_data['s_etablissement'] = post_dict['s_etablissement_description']
|
||||
wcs_rest_data['s_etablissement_raw'] = code_etablissement
|
||||
|
||||
wcs_submit(wcs_rest_data, posturl)
|
||||
return super(Declare, self).form_valid(form)
|
||||
|
|
Reference in New Issue