From 841580cdbf876c44e6fe6c394d92d0b3105394c9 Mon Sep 17 00:00:00 2001 From: Raphael Odini Date: Mon, 27 Nov 2023 16:46:56 +0100 Subject: [PATCH] Siae attach workflow: move contact support --- .../templates/dashboard/siae_search_adopt_confirm.html | 9 +++++++-- lemarche/www/dashboard_siaes/views.py | 5 +---- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/lemarche/templates/dashboard/siae_search_adopt_confirm.html b/lemarche/templates/dashboard/siae_search_adopt_confirm.html index 70821386c..1db8c2b48 100644 --- a/lemarche/templates/dashboard/siae_search_adopt_confirm.html +++ b/lemarche/templates/dashboard/siae_search_adopt_confirm.html @@ -73,10 +73,15 @@

Dernière vérification

{% if siae.users.count %} {% endif %} diff --git a/lemarche/www/dashboard_siaes/views.py b/lemarche/www/dashboard_siaes/views.py index 1e6c76c32..ac245e53b 100644 --- a/lemarche/www/dashboard_siaes/views.py +++ b/lemarche/www/dashboard_siaes/views.py @@ -86,10 +86,7 @@ def form_valid(self, form): logs=[{"action": "create", "timestamp": timezone.now().isoformat()}], ) send_siae_user_request_email_to_assignee(siae_user_request) - success_message = ( - f"La demande a été envoyée à {self.object.users.first().full_name}.
" - f"Cet utilisateur ne fait plus partie de la structure ? Contactez le support" # noqa - ) + success_message = f"La demande a été envoyée à {self.object.users.first().full_name}." messages.add_message(self.request, messages.SUCCESS, success_message) return HttpResponseRedirect(reverse_lazy("dashboard:home"))