From 2adef1e24b117242bf5bca1e76a87f89400c2a88 Mon Sep 17 00:00:00 2001 From: Raphael Odini Date: Thu, 14 Sep 2023 16:34:41 +0200 Subject: [PATCH] Siae search: remove user buyer mailjet lists --- lemarche/www/siaes/views.py | 30 ------------------------------ 1 file changed, 30 deletions(-) diff --git a/lemarche/www/siaes/views.py b/lemarche/www/siaes/views.py index f6e033248..717507b3d 100644 --- a/lemarche/www/siaes/views.py +++ b/lemarche/www/siaes/views.py @@ -128,36 +128,6 @@ def get_context_data(self, **kwargs): ) return context - def get(self, request, *args, **kwargs): - """ - Additional actions: - - add buyer to contact list - - add buyer who searched for sector 'traiteur' to contact list - - add buyer who searched for sector 'nettoyage' to contact list - """ - self.object_list = self.get_queryset() - user = request.user - context = self.get_context_data() - if user.is_authenticated: - if user.kind == user.KIND_BUYER: - add_to_contact_list(user, "buyer_search") - if "current_sectors" in context: - if next( - (sector for sector in context["current_sectors"] if sector["slug"] == SECTOR_TRAITEUR_SLUG), - False, - ): - add_to_contact_list(user, "buyer_search_traiteur") - if next( - ( - sector - for sector in context["current_sectors"] - if sector["slug"] in SECTOR_GROUP_HYGIERE_SLUG_LIST - ), - False, - ): - add_to_contact_list(user, "buyer_search_nettoyage") - return self.render_to_response(context) - class SiaeSearchResultsDownloadView(LoginRequiredMixin, View): http_method_names = ["get"]