mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-05 05:09:25 +02:00
Fix #199: unplayable tracks are now properly disabled in the interface
This commit is contained in:
parent
6f79dd475d
commit
2f5a13a339
3 changed files with 23 additions and 6 deletions
|
@ -38,6 +38,7 @@ class ImportBatchAdmin(admin.ModelAdmin):
|
|||
search_fields = [
|
||||
'import_request__name', 'source', 'batch__pk', 'mbid']
|
||||
|
||||
|
||||
@admin.register(models.ImportJob)
|
||||
class ImportJobAdmin(admin.ModelAdmin):
|
||||
list_display = ['source', 'batch', 'track_file', 'status', 'mbid']
|
||||
|
@ -77,5 +78,10 @@ class TrackFileAdmin(admin.ModelAdmin):
|
|||
list_select_related = [
|
||||
'track'
|
||||
]
|
||||
search_fields = ['source', 'acoustid_track_id']
|
||||
search_fields = [
|
||||
'source',
|
||||
'acoustid_track_id',
|
||||
'track__title',
|
||||
'track__album__title',
|
||||
'track__artist__name']
|
||||
list_filter = ['mimetype']
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue