admin.py 399 B

1234567891011121314
  1. from django.contrib import admin
  2. from .models import Event, Date, Participant
  3. @admin.register(Event)
  4. class EventAdmin(admin.ModelAdmin):
  5. list_display = ('name', 'url', 'created_at')
  6. @admin.register(Date)
  7. class DateAdmin(admin.ModelAdmin):
  8. list_display = ('event', 'date')
  9. @admin.register(Participant)
  10. class ParticipantAdmin(admin.ModelAdmin):
  11. list_display = ('event', 'name', 'slots')