funkwhale/api/funkwhale_api/requests/admin.py

16 wiersze
359 B
Python
Czysty Zwykły widok Historia

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 = [
2018-03-07 21:36:37 +00:00
'user'
]
list_filter = [
'status',
]
search_fields = ['artist_name', 'comment', 'albums']