CollectionMember: fix collection list to return data in the right format.

master
Tom Hacohen 5 years ago
parent e159bf971b
commit f6960bb8cb

@ -449,6 +449,16 @@ class CollectionMemberViewSet(BaseViewSet):
return queryset.filter(collection=collection)
def list(self, request, collection_uid=None):
queryset = self.get_queryset()
serializer = self.get_serializer(queryset, many=True)
ret = {
'data': serializer.data,
}
return Response(ret)
def create(self, request):
return Response(status=status.HTTP_405_METHOD_NOT_ALLOWED)

Loading…
Cancel
Save