CollectionMember: fix collection list to return data in the right format.
This commit is contained in:
parent
e159bf971b
commit
f6960bb8cb
@ -449,6 +449,16 @@ class CollectionMemberViewSet(BaseViewSet):
|
|||||||
|
|
||||||
return queryset.filter(collection=collection)
|
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):
|
def create(self, request):
|
||||||
return Response(status=status.HTTP_405_METHOD_NOT_ALLOWED)
|
return Response(status=status.HTTP_405_METHOD_NOT_ALLOWED)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user