From 453af7571fc7545803de7dec7051579ce82e66ac Mon Sep 17 00:00:00 2001 From: "madjid.asa" Date: Mon, 11 Mar 2024 15:14:59 +0100 Subject: [PATCH] rename delete to hide --- lemarche/templates/tenders/_list_item_siae.html | 4 ++-- lemarche/www/tenders/urls.py | 8 ++++---- lemarche/www/tenders/views.py | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/lemarche/templates/tenders/_list_item_siae.html b/lemarche/templates/tenders/_list_item_siae.html index 2ce640a9c..677e4929f 100644 --- a/lemarche/templates/tenders/_list_item_siae.html +++ b/lemarche/templates/tenders/_list_item_siae.html @@ -23,8 +23,8 @@ {% if tender.is_new_for_siaes %} Nouveau {% elif tender.deadline_date_is_outdated_annotated %} -
{% csrf_token %} diff --git a/lemarche/www/tenders/urls.py b/lemarche/www/tenders/urls.py index 06eaa5033..00406573d 100644 --- a/lemarche/www/tenders/urls.py +++ b/lemarche/www/tenders/urls.py @@ -10,7 +10,7 @@ TenderDetailSurveyTransactionedView, TenderDetailView, TenderListView, - TenderSiaeDeleteView, + TenderSiaeHideView, TenderSiaeListView, ) @@ -47,9 +47,9 @@ name="detail-not-interested-click", ), path( - "/supprimer-depot-de-besoin", - TenderSiaeDeleteView.as_view(), - name="delete-tender-siae", + "/cacher-depot-de-besoin", + TenderSiaeHideView.as_view(), + name="hide-tender-siae", ), path( "/sondage-transaction", diff --git a/lemarche/www/tenders/views.py b/lemarche/www/tenders/views.py index 00ec88979..35af0fd9c 100644 --- a/lemarche/www/tenders/views.py +++ b/lemarche/www/tenders/views.py @@ -727,7 +727,7 @@ def get_success_message(self, already_answered=False): return "Merci pour votre réponse !" -class TenderSiaeDeleteView(LoginRequiredMixin, View): +class TenderSiaeHideView(LoginRequiredMixin, View): def post(self, request, *args, **kwargs): tender = get_object_or_404(Tender, slug=kwargs["slug"]) user = self.request.user