mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-05 03:19:24 +02:00
See #224: updated front-end with new music API
This commit is contained in:
parent
857fab526d
commit
a8baf8fa67
13 changed files with 94 additions and 84 deletions
|
@ -319,11 +319,8 @@ class Lyrics(models.Model):
|
|||
class TrackQuerySet(models.QuerySet):
|
||||
def for_nested_serialization(self):
|
||||
return (self.select_related()
|
||||
.select_related('album__artist')
|
||||
.prefetch_related(
|
||||
'tags',
|
||||
'files',
|
||||
'artist__albums__tracks__tags'))
|
||||
.select_related('album__artist', 'artist')
|
||||
.prefetch_related('files'))
|
||||
|
||||
|
||||
class Track(APIModelMixin):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue