from django.contrib import admin
from .models import BadgeImage


@admin.register(BadgeImage)
class BadgeImageAdmin(admin.ModelAdmin):
    list_display = ['id', 'user', 'source', 'style', 'generation_status', 'created_at']
    list_filter = ['source', 'generation_status', 'style']
    search_fields = ['prompt', 'user__nickname']
    readonly_fields = ['created_at', 'updated_at']
