From 2dff0830c369304c2c2db3df4e477e297584c4b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Chlo=C3=A9?= <104012698+chloend@users.noreply.github.com> Date: Thu, 12 Dec 2024 10:09:29 +0100 Subject: [PATCH] feat(Admin): Ajout de 'contact_phone' dans la recherche (#1575) --- lemarche/tenders/admin.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lemarche/tenders/admin.py b/lemarche/tenders/admin.py index b103d3f6b..69cbaeb31 100644 --- a/lemarche/tenders/admin.py +++ b/lemarche/tenders/admin.py @@ -314,8 +314,8 @@ class TenderAdmin(FieldsetsInlineMixin, admin.ModelAdmin): "start_working_date", ) # filter on "perimeters"? (loads ALL the perimeters... Use django-admin-autocomplete-filter instead?) - search_fields = ["id", "title", "slug", "author__id", "author__email"] - search_help_text = "Cherche sur les champs : ID, Titre, Slug, Auteur (ID, E-mail)" + search_fields = ["id", "title", "slug", "author__id", "author__email", "contact_phone"] + search_help_text = "Cherche sur les champs : ID, Titre, Slug, Auteur (ID, E-mail), Contact Phone" ordering = ["-created_at"] form = TenderForm