All checks were successful
Build and Deploy Backend / build-and-deploy (push) Successful in 7m15s
11 lines
382 B
Python
11 lines
382 B
Python
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']
|