mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-04 15:09:22 +02:00
Fixed #44: now bind track file to import job
This commit is contained in:
parent
a08bf51216
commit
e90e9dc7aa
14 changed files with 181 additions and 16 deletions
|
@ -2,30 +2,35 @@ from django.contrib import admin
|
|||
|
||||
from . import models
|
||||
|
||||
|
||||
@admin.register(models.Artist)
|
||||
class ArtistAdmin(admin.ModelAdmin):
|
||||
list_display = ['name', 'mbid', 'creation_date']
|
||||
search_fields = ['name', 'mbid']
|
||||
|
||||
|
||||
@admin.register(models.Album)
|
||||
class AlbumAdmin(admin.ModelAdmin):
|
||||
list_display = ['title', 'artist', 'mbid', 'release_date', 'creation_date']
|
||||
search_fields = ['title', 'artist__name', 'mbid']
|
||||
list_select_related = True
|
||||
|
||||
|
||||
@admin.register(models.Track)
|
||||
class TrackAdmin(admin.ModelAdmin):
|
||||
list_display = ['title', 'artist', 'album', 'mbid']
|
||||
search_fields = ['title', 'artist__name', 'album__title', 'mbid']
|
||||
list_select_related = True
|
||||
|
||||
|
||||
@admin.register(models.ImportBatch)
|
||||
class ImportBatchAdmin(admin.ModelAdmin):
|
||||
list_display = ['creation_date', 'status']
|
||||
|
||||
|
||||
@admin.register(models.ImportJob)
|
||||
class ImportJobAdmin(admin.ModelAdmin):
|
||||
list_display = ['source', 'batch', 'status', 'mbid']
|
||||
list_display = ['source', 'batch', 'track_file', 'status', 'mbid']
|
||||
list_select_related = True
|
||||
search_fields = ['source', 'batch__pk', 'mbid']
|
||||
list_filter = ['status']
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue