fixup admin for Ticket models

This commit is contained in:
Thomas Steen Rasmussen 2017-08-20 01:01:44 +02:00
parent 3cde4af189
commit 042a335269

View file

@ -20,12 +20,31 @@ class BaseTicketAdmin(admin.ModelAdmin):
@admin.register(TicketType)
class TicketTypeAdmin(admin.ModelAdmin):
pass
list_display = [
'name',
'camp',
]
list_filter = [
'name',
'camp',
]
@admin.register(SponsorTicket)
class SponsorTicketAdmin(BaseTicketAdmin):
pass
list_display = [
'pk',
'ticket_type',
'sponsor',
'checked_in',
]
list_filter = [
'ticket_type',
'sponsor',
'checked_in',
]
@admin.register(DiscountTicket)
@ -35,4 +54,18 @@ class DiscountTicketAdmin(BaseTicketAdmin):
@admin.register(ShopTicket)
class ShopTicketAdmin(BaseTicketAdmin):
pass
list_display = [
'pk',
'ticket_type',
'order',
'product',
'checked_in',
]
list_filter = [
'ticket_type',
'order',
'product',
'checked_in',
]