Projet

Général

Profil

0002-clicrdv-use-correct-method-when-cancelling-appointme.patch

Valentin Deniaud, 27 janvier 2020 17:19

Télécharger (977 octets)

Voir les différences:

Subject: [PATCH 2/2] clicrdv: use correct method when cancelling appointment
 (#39248)

 passerelle/apps/clicrdv/models.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
passerelle/apps/clicrdv/models.py
136 136

  
137 137
    def cancel(self, appointment_id, **kwargs):
138 138
        try:
139
            r = self.request('DELETE', 'appointments/%s' % appointment_id)
139
            r = self.request('appointments/%s' % appointment_id, method='delete')
140 140
            r.raise_for_status()
141 141
        except requests.exceptions.HTTPError as e:
142 142
            # clicrdv will return a "Bad Request" (HTTP 400) response
143
-