mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-05 05:39:25 +02:00
Reduced number of SQL queries when loading /api/admin/music/tracks/
This commit is contained in:
parent
51dbd905e7
commit
3b87580a69
1 changed files with 1 additions and 1 deletions
|
@ -20,7 +20,7 @@ class AlbumAdmin(admin.ModelAdmin):
|
|||
class TrackAdmin(admin.ModelAdmin):
|
||||
list_display = ["title", "artist", "album", "mbid"]
|
||||
search_fields = ["title", "artist__name", "album__title", "mbid"]
|
||||
list_select_related = True
|
||||
list_select_related = ["album__artist", "artist"]
|
||||
|
||||
|
||||
@admin.register(models.ImportBatch)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue