From 68365f5d75c7c2cae14dad93c603430f4b2703eb Mon Sep 17 00:00:00 2001 From: Tom Hacohen Date: Tue, 23 Jun 2020 18:35:09 +0300 Subject: [PATCH] Collection revision: support the inline parameter. --- django_etebase/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django_etebase/views.py b/django_etebase/views.py index 0e153a4..f692ce0 100644 --- a/django_etebase/views.py +++ b/django_etebase/views.py @@ -284,7 +284,7 @@ class CollectionItemViewSet(BaseViewSet): queryset = queryset.filter(id__lt=iterator.id) 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 done = len(queryset) < limit