from django.contrib import admin

from .models import ContactMessage


@admin.register(ContactMessage)
class ContactMessageAdmin(admin.ModelAdmin):
    list_display = (
        'full_name', 'email', 'company', 'organisation_type',
        'subject', 'is_read', 'created_at',
    )
    list_filter = ('subject', 'organisation_type', 'sender_role', 'is_read')
    search_fields = (
        'first_name', 'last_name', 'email', 'company',
        'position', 'partnership_areas', 'message',
    )
    readonly_fields = ('created_at',)
