From 508873dffbc94d8f2268f23cf57f8c0bcee5428c Mon Sep 17 00:00:00 2001
From: Eliot Berriot <contact@eliotberriot.com>
Date: Fri, 28 Sep 2018 20:50:28 +0200
Subject: [PATCH] Lining

---
 api/funkwhale_api/playlists/models.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/api/funkwhale_api/playlists/models.py b/api/funkwhale_api/playlists/models.py
index 313b0cfc..ac86b97a 100644
--- a/api/funkwhale_api/playlists/models.py
+++ b/api/funkwhale_api/playlists/models.py
@@ -150,7 +150,9 @@ class PlaylistTrackQuerySet(models.QuerySet):
     def for_nested_serialization(self, actor=None):
         tracks = music_models.Track.objects.annotate_playable_by_actor(actor)
         tracks = tracks.select_related("artist", "album__artist")
-        return self.prefetch_related(models.Prefetch("track", queryset=tracks, to_attr='_prefetched_track'))
+        return self.prefetch_related(
+            models.Prefetch("track", queryset=tracks, to_attr="_prefetched_track")
+        )
 
     def annotate_playable_by_actor(self, actor):
         tracks = (
-- 
GitLab