Adding search to admin for tickets.
This commit is contained in:
parent
65201831da
commit
f06a00db69
|
@ -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']
|
||||||
|
|
Loading…
Reference in a new issue