From beb11e7f7cf57086607735c2d66eb8361204ef43 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Agn=C3=A8s=20Haasser?= Date: Mon, 22 Nov 2021 12:52:57 +0100 Subject: [PATCH] Add responsable phone number in export --- aidants_connect_web/admin.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/aidants_connect_web/admin.py b/aidants_connect_web/admin.py index 5857273fe..55efbf30a 100644 --- a/aidants_connect_web/admin.py +++ b/aidants_connect_web/admin.py @@ -582,7 +582,9 @@ class HabilitationRequestResource(resources.ModelResource): widget=ManyToManyWidget(Aidant, field="email", separator="\n"), ) responsable__phone = Field( - attribute="", column_name="Téléphone responsable Aidants Connect" + attribute="organisation__responsables", + column_name="Téléphone responsable Aidants Connect", + widget=ManyToManyWidget(Aidant, field="phone", separator="\n"), ) last_name = Field(attribute="last_name", column_name="Nom de l'aidant à former") first_name = Field(