0002-clicrdv-use-correct-method-when-cancelling-appointme.patch
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 |
- |