mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-04 15:39:16 +02:00
Merge branch 'master' into develop
This commit is contained in:
commit
e730ed45d5
10 changed files with 137 additions and 26 deletions
|
@ -131,7 +131,6 @@ class ArtistViewSet(
|
|||
required_scope = "libraries"
|
||||
anonymous_policy = "setting"
|
||||
filterset_class = filters.ArtistFilter
|
||||
ordering_fields = ("id", "name", "creation_date", "modification_date")
|
||||
|
||||
fetches = federation_decorators.fetches_route()
|
||||
mutations = common_decorators.mutations_route(types=["update"])
|
||||
|
@ -188,12 +187,6 @@ class AlbumViewSet(
|
|||
permission_classes = [oauth_permissions.ScopePermission]
|
||||
required_scope = "libraries"
|
||||
anonymous_policy = "setting"
|
||||
ordering_fields = (
|
||||
"creation_date",
|
||||
"release_date",
|
||||
"title",
|
||||
"artist__modification_date",
|
||||
)
|
||||
filterset_class = filters.AlbumFilter
|
||||
|
||||
fetches = federation_decorators.fetches_route()
|
||||
|
@ -346,17 +339,6 @@ class TrackViewSet(
|
|||
required_scope = "libraries"
|
||||
anonymous_policy = "setting"
|
||||
filterset_class = filters.TrackFilter
|
||||
ordering_fields = (
|
||||
"creation_date",
|
||||
"title",
|
||||
"album__title",
|
||||
"album__release_date",
|
||||
"size",
|
||||
"position",
|
||||
"disc_number",
|
||||
"artist__name",
|
||||
"artist__modification_date",
|
||||
)
|
||||
fetches = federation_decorators.fetches_route()
|
||||
mutations = common_decorators.mutations_route(types=["update"])
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue