mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-05 05:49:24 +02:00
Fixed #384: unfiltered results in favorites API
This commit is contained in:
parent
f9dbda83bf
commit
25755ad39b
6 changed files with 26 additions and 5 deletions
|
@ -7,7 +7,7 @@ from funkwhale_api.activity import record
|
|||
from funkwhale_api.common import fields, permissions
|
||||
from funkwhale_api.music.models import Track
|
||||
|
||||
from . import models, serializers
|
||||
from . import filters, models, serializers
|
||||
|
||||
|
||||
class TrackFavoriteViewSet(
|
||||
|
@ -17,6 +17,7 @@ class TrackFavoriteViewSet(
|
|||
viewsets.GenericViewSet,
|
||||
):
|
||||
|
||||
filter_class = filters.TrackFavoriteFilter
|
||||
serializer_class = serializers.UserTrackFavoriteSerializer
|
||||
queryset = (
|
||||
models.TrackFavorite.objects.all()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue