from django.contrib import admin
from .models import ContactFormSubmission


@admin.register(ContactFormSubmission)
class ContactFormSubmissionAdmin(admin.ModelAdmin):
    list_display = ("created_at", "category", "name", "email", "contact")
    list_filter = ("category", "created_at")
    search_fields = ("name", "email", "contact", "message", "source_page")
    readonly_fields = (
        "name",
        "email",
        "contact",
        "category",
        "message",
        "source_page",
        "ip_address",
        "user_agent",
        "created_at",
    )
