From b249d61c2d75cccbd1a0da24e8f371490e44a105 Mon Sep 17 00:00:00 2001 From: Ludovic Stephan Date: Fri, 7 Oct 2016 23:49:55 +0200 Subject: [PATCH] fix recherche dans spectaclerevente --- bda/admin.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/bda/admin.py b/bda/admin.py index 37fdf9c7..2991ebf5 100644 --- a/bda/admin.py +++ b/bda/admin.py @@ -219,8 +219,7 @@ class SpectacleReventeAdmin(admin.ModelAdmin): list_display = ("spectacle", "seller", "date", "soldTo") raw_id_fields = ("attribution",) readonly_fields = ("shotgun", "expiration_time") - search_fields = ("spectacle__title", - "seller__user__username", + search_fields = ("seller__user__username", "seller__user__firstname", "seller__user__lastname",)