from django.contrib import admin
from .models import DownloaderRecord

@admin.register(DownloaderRecord)
class DownloaderRecordAdmin(admin.ModelAdmin):
    list_display = ("id", "url", "format", "length_of_media", "file_size", "download_time")
    list_filter = ("format",)
    search_fields = ("url",)
    ordering = ("-download_time",)
    readonly_fields = ("download_time",)
