Adding search to admin for tickets.

This commit is contained in:
Vidir Valberg Gudmundsson 2017-08-22 19:36:24 +02:00
parent 65201831da
commit f06a00db69

View file

@ -46,6 +46,8 @@ class SponsorTicketAdmin(BaseTicketAdmin):
'checked_in', 'checked_in',
] ]
search_fields = ['name', 'email', 'sponsor__name']
@admin.register(DiscountTicket) @admin.register(DiscountTicket)
class DiscountTicketAdmin(BaseTicketAdmin): class DiscountTicketAdmin(BaseTicketAdmin):
@ -69,3 +71,4 @@ class ShopTicketAdmin(BaseTicketAdmin):
'checked_in', 'checked_in',
] ]
search_fields = ['order__id', 'name', 'email']