funkwhale/api/funkwhale_api/requests/admin.py

12 wiersze
330 B
Python

from django.contrib import admin
from . import models
@admin.register(models.ImportRequest)
class ImportRequestAdmin(admin.ModelAdmin):
list_display = ["artist_name", "user", "status", "creation_date"]
list_select_related = ["user"]
list_filter = ["status"]
search_fields = ["artist_name", "comment", "albums"]