Skip to content
This repository has been archived by the owner on Oct 22, 2024. It is now read-only.

Commit

Permalink
map_service(): ajoute les champs de formulaire externe
Browse files Browse the repository at this point in the history
  • Loading branch information
ggounot committed Jul 17, 2024
1 parent 355e59e commit b667507
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions dora/data_inclusion/mappings.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,10 @@ def map_service(service_data: dict, is_authenticated: bool) -> dict:
]
if beneficiaries_access_modes is not None
else None,
"beneficiaries_access_modes_external_form_link": service_data[
"formulaire_en_ligne"
],
"beneficiaries_access_modes_external_form_link_text": "",
"beneficiaries_access_modes_other": service_data[
"modes_orientation_beneficiaire_autres"
],
Expand All @@ -209,6 +213,10 @@ def map_service(service_data: dict, is_authenticated: bool) -> dict:
"coach_orientation_modes_display": [m.label for m in coach_orientation_modes]
if coach_orientation_modes is not None
else None,
"coach_orientation_modes_external_form_link": service_data[
"formulaire_en_ligne"
],
"coach_orientation_modes_external_form_link_text": "",
"coach_orientation_modes_other": service_data[
"modes_orientation_accompagnateur_autres"
],
Expand Down

0 comments on commit b667507

Please sign in to comment.