from django.contrib import admin
from django.contrib.admin import ModelAdmin
from unfold.admin import ModelAdmin as UnfoldModelAdmin
from .models import TranscriptionTask

@admin.register(TranscriptionTask)
class TranscriptionTaskAdmin(UnfoldModelAdmin):
    list_display = ['id', 'status', 'task_id', 'created_at']
    list_filter = ['status', 'created_at']
    search_fields = ['id', 'task_id', 'transcription', 'summary']
    readonly_fields = ['id', 'created_at', 'updated_at', 'task_id']
