More ticket admin tweaks.
This commit is contained in:
parent
c0159cfecb
commit
001bbd5dc0
|
@ -41,6 +41,7 @@ class SponsorTicketAdmin(BaseTicketAdmin):
|
||||||
]
|
]
|
||||||
|
|
||||||
list_filter = [
|
list_filter = [
|
||||||
|
'ticket_type__camp',
|
||||||
'checked_in',
|
'checked_in',
|
||||||
'ticket_type',
|
'ticket_type',
|
||||||
'sponsor',
|
'sponsor',
|
||||||
|
@ -56,8 +57,12 @@ class DiscountTicketAdmin(BaseTicketAdmin):
|
||||||
|
|
||||||
@admin.register(ShopTicket)
|
@admin.register(ShopTicket)
|
||||||
class ShopTicketAdmin(BaseTicketAdmin):
|
class ShopTicketAdmin(BaseTicketAdmin):
|
||||||
|
def user_email(self, obj):
|
||||||
|
return obj.order.user.email
|
||||||
|
|
||||||
list_display = [
|
list_display = [
|
||||||
'pk',
|
'pk',
|
||||||
|
'user_email',
|
||||||
'ticket_type',
|
'ticket_type',
|
||||||
'order',
|
'order',
|
||||||
'product',
|
'product',
|
||||||
|
@ -72,4 +77,4 @@ class ShopTicketAdmin(BaseTicketAdmin):
|
||||||
'product',
|
'product',
|
||||||
]
|
]
|
||||||
|
|
||||||
search_fields = ['order__id', 'name', 'email']
|
search_fields = ['pk', 'order__id', 'name', 'email']
|
||||||
|
|
Loading…
Reference in a new issue