mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-06 07:19:56 +02:00
Playlist filterset
This commit is contained in:
parent
08b28a7d98
commit
f917c5d0c4
1 changed files with 13 additions and 0 deletions
13
api/funkwhale_api/playlists/filters.py
Normal file
13
api/funkwhale_api/playlists/filters.py
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
from django_filters import rest_framework as filters
|
||||||
|
|
||||||
|
from . import models
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
class PlaylistFilter(filters.FilterSet):
|
||||||
|
|
||||||
|
class Meta:
|
||||||
|
model = models.Playlist
|
||||||
|
fields = {
|
||||||
|
'user': ['exact'],
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue