from django.contrib import admin
from .models import Case

@admin.register(Case)
class CaseAdmin(admin.ModelAdmin):
    list_display = ('full_name', 'email', 'submitted_at', 'status')
    list_filter = ('status', 'submitted_at')
    search_fields = ('full_name', 'email', 'description')
    readonly_fields = ('submitted_at',)
