16 lines
376 B
Python
16 lines
376 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',
|
||
|
|
'track'
|
||
|
|
]
|
||
|
|
list_filter = [
|
||
|
|
'status',
|
||
|
|
]
|
||
|
|
search_fields = ['artist_name', 'comment', 'albums']
|