oacpl/events/admin.py
2018-02-26 22:02:50 -05:00

10 lines
278 B
Python

from django.contrib import admin
from .models import Event
@admin.register(Event)
class EventAdmit(admin.ModelAdmin):
fields = ['title', 'date', 'location', 'max_attendees', 'cost', 'description']
list_display = ['title', 'date', 'location', 'max_attendees', 'cost']