fix recherche dans spectaclerevente

This commit is contained in:
Ludovic Stephan 2016-10-07 23:49:55 +02:00
parent e267cb91ef
commit b249d61c2d

View file

@ -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",)