List APIs: add done to APIs that didn't have it.

This commit is contained in:
Tom Hacohen 2020-06-22 17:27:07 +03:00
parent fcb58f0f4c
commit b4db35bca1

View File

@ -140,6 +140,7 @@ class BaseViewSet(viewsets.ModelViewSet):
ret = { ret = {
'data': serializer.data, 'data': serializer.data,
'done': True, # we always return all the items, so it's always done
} }
return Response(ret) return Response(ret)
@ -449,6 +450,7 @@ class CollectionMemberViewSet(BaseViewSet):
ret = { ret = {
'data': serializer.data, 'data': serializer.data,
'done': True, # we always return all the items, so it's always done
} }
return Response(ret) return Response(ret)