Collection revision: support the inline parameter.
This commit is contained in:
parent
7183b97541
commit
68365f5d75
@ -284,7 +284,7 @@ class CollectionItemViewSet(BaseViewSet):
|
|||||||
queryset = queryset.filter(id__lt=iterator.id)
|
queryset = queryset.filter(id__lt=iterator.id)
|
||||||
|
|
||||||
queryset = queryset[:limit]
|
queryset = queryset[:limit]
|
||||||
serializer = CollectionItemRevisionSerializer(queryset, many=True)
|
serializer = CollectionItemRevisionSerializer(queryset, context=self.get_serializer_context(), many=True)
|
||||||
|
|
||||||
# This is not the most efficient way of implementing this, but it's good enough
|
# This is not the most efficient way of implementing this, but it's good enough
|
||||||
done = len(queryset) < limit
|
done = len(queryset) < limit
|
||||||
|
Loading…
Reference in New Issue
Block a user