diff --git a/controllers/endpoint.py b/controllers/endpoint.py index 7d2bef7769e52d0e32d539fc0334be3b796aa1f2..3255f88c3cae1bb4df2371ece72617bd3a064187 100644 --- a/controllers/endpoint.py +++ b/controllers/endpoint.py @@ -45,7 +45,7 @@ class AlterincubEndpoint(http.Controller): "theme": p.sector_id.mapped("name") if p.sector_id else [], "start_date": p.start_date.year if p.start_date else None, "address": p.get_formatted_address(), - "department": p.department_id.code if p.department_id else "", + "department": p.department_id.display_name if p.department_id else "", "region": "Auvergne-Rhône-Alpes", "zip": p.zip if p.zip else "", "city": p.city if p.city else "",