Skip to content

Commit

Permalink
feat(Admin): Ajout de 'contact_phone' dans la recherche (#1575)
Browse files Browse the repository at this point in the history
  • Loading branch information
chloend authored Dec 12, 2024
1 parent f4eefc8 commit 2dff083
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lemarche/tenders/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2dff083

Please sign in to comment.