From 70c98fedc7bbb297fd7c89c45cd220f04751fd03 Mon Sep 17 00:00:00 2001 From: Valentin Deniaud Date: Mon, 27 Jan 2020 16:49:55 +0100 Subject: [PATCH 1/2] clicrdv: update appointment request format (#39248) --- passerelle/apps/clicrdv/models.py | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/passerelle/apps/clicrdv/models.py b/passerelle/apps/clicrdv/models.py index 07978300..9a8e2133 100644 --- a/passerelle/apps/clicrdv/models.py +++ b/passerelle/apps/clicrdv/models.py @@ -165,16 +165,18 @@ class ClicRdv(BaseResource): if websource is None: websource = self.websource or '' appointment = { - 'fiche': { - 'firstname': get_data('clicrdv_firstname') or '-', - 'lastname': get_data('clicrdv_lastname') or '-', - 'email': get_data('clicrdv_email', ''), - 'firstphone': get_data('clicrdv_firstphone', ''), - 'secondphone': get_data('clicrdv_secondphone', ''), - }, - 'date': date, - 'intervention_ids': [intervention], - 'websource': websource, + 'appointment': { + 'fiche': { + 'firstname': get_data('clicrdv_firstname') or '-', + 'lastname': get_data('clicrdv_lastname') or '-', + 'email': get_data('clicrdv_email', ''), + 'firstphone': get_data('clicrdv_firstphone', ''), + 'secondphone': get_data('clicrdv_secondphone', ''), + }, + 'date': date, + 'intervention_ids': [intervention], + 'websource': websource, + }, } comments = get_data('clicrdv_comments') or self.default_comment if comments: -- 2.20.1