See #170: don't expose channels libraries in API
This commit is contained in:
parent
7ac5a2f333
commit
159c07c2c0
6 changed files with 57 additions and 3 deletions
|
|
@ -203,7 +203,9 @@ class MusicLibraryViewSet(
|
|||
authentication_classes = [authentication.SignatureAuthentication]
|
||||
renderer_classes = renderers.get_ap_renderers()
|
||||
serializer_class = serializers.LibrarySerializer
|
||||
queryset = music_models.Library.objects.all().select_related("actor")
|
||||
queryset = (
|
||||
music_models.Library.objects.all().select_related("actor").filter(channel=None)
|
||||
)
|
||||
lookup_field = "uuid"
|
||||
|
||||
def retrieve(self, request, *args, **kwargs):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue