bornhack-website/tickets/admin.py

28 lines
455 B
Python
Raw Normal View History

from django.contrib import admin
from .models import Ticket, TicketType
@admin.register(Ticket)
class TicketAdmin(admin.ModelAdmin):
list_display = [
'user',
'ticket_type',
'paid',
]
list_filter = [
'paid',
'ticket_type',
]
@admin.register(TicketType)
class TicketTypeAdmin(admin.ModelAdmin):
list_display = [
'name',
'price',
'available_in',
'camp',
]