mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-03 13:39:17 +02:00
Fix recently listened widget and simple artist serializer
This commit is contained in:
parent
0c8f4400b0
commit
071ff89a4f
2 changed files with 5 additions and 1 deletions
|
@ -56,7 +56,9 @@ class ListeningViewSet(
|
|||
)
|
||||
tracks = Track.objects.with_playable_uploads(
|
||||
music_utils.get_actor_from_request(self.request)
|
||||
).select_related("artist", "album__artist", "attributed_to")
|
||||
).select_related(
|
||||
"artist", "album__artist", "attributed_to", "artist__attachment_cover"
|
||||
)
|
||||
return queryset.prefetch_related(Prefetch("track", queryset=tracks))
|
||||
|
||||
def get_serializer_context(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue