Improved performance when listing playable tracks, albums and artists

This commit is contained in:
Eliot Berriot 2019-01-03 18:59:31 +01:00
parent a5143cb295
commit 2da3a3842e
No known key found for this signature in database
GPG key ID: DD6965E2476E5C27
5 changed files with 60 additions and 15 deletions

View file

@ -57,7 +57,7 @@ def find_object(
if filter_playable:
actor = utils.get_actor_from_request(request)
qs = qs.playable_by(actor).distinct()
qs = qs.playable_by(actor)
try:
obj = qs.get(**{model_field: value})