mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-05 03:49:24 +02:00
Improved performance when listing playable tracks, albums and artists
This commit is contained in:
parent
a5143cb295
commit
2da3a3842e
5 changed files with 60 additions and 15 deletions
|
@ -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})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue