summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--grandlyon_elyx/models.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/grandlyon_elyx/models.py b/grandlyon_elyx/models.py
index c00549c..6cd9e99 100644
--- a/grandlyon_elyx/models.py
+++ b/grandlyon_elyx/models.py
@@ -112,7 +112,7 @@ class GrandlyonElyx(BaseResource):
send_request = requests.Request()
send_request.headers['Content-Type'] = 'application/json'
send_request.url = self.service_url+'/rr/Demandes?operation=envoi'
- send_request.data = u'{"objet_json":"demandePortail","ID_REQ_SIG":"'+user_email+'_'+formdata.values['tracking_code']+'_'+timestamp+'",'
+ send_request.data = u'{"objet_json":"demandePortail","ID_REQ_SIG":"'+user_email+'_'+formdata.values['type_de_demande']+'_'+formdata.values['tracking_code']+'_'+timestamp+'",'
send_request.data += u'"ID_REQ_DEMANDE":"'+formdata.values['type_de_demande']+'-'+formdata.values['tracking_code']+'","TYPE":"'+formdata.values['type_de_demande']+'","DATE_DEM":"'+datetime.datetime.now().strftime('%d/%m/%Y')+'",'
send_request.data += u'"CIVILITE":"'+self.none_to_str(formdata.values['civilite_code'])+'","NOM":"'+self.none_to_str(formdata.values['nom'])+'","PRENOM":"'+self.none_to_str(formdata.values['prenom'])+'","ADRESSE":"'+self.none_to_str(formdata.values['numero_voie'])+' '+self.none_to_str(formdata.values['voie'])+'","BP":"'+self.none_to_str(formdata.values['boite_postale'])
send_request.data += u'","CP":"'+self.none_to_str(formdata.values['code_postal'])+'","VILLE":"'+self.none_to_str(formdata.values['commune'])+'",'