from django.contrib import admin
from .models import Event

@admin.register(Event)
class EventAdmin(admin.ModelAdmin):
    list_display = ('title', 'start_date', 'location', 'is_published', 'organizer')
    list_filter = ('is_published', 'start_date', 'organizer')
    search_fields = ('title', 'location')

# Register your models here.
