From af2787195554cfd624ab343b05f50004997709a2 Mon Sep 17 00:00:00 2001 From: Tom Hacohen Date: Thu, 16 Apr 2020 17:38:07 +0300 Subject: [PATCH] Revision: change the shape of the list response. --- django_etesync/views.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/django_etesync/views.py b/django_etesync/views.py index 25f2d2a..7d6234f 100644 --- a/django_etesync/views.py +++ b/django_etesync/views.py @@ -191,7 +191,10 @@ class CollectionItemViewSet(BaseViewSet): col_it = get_object_or_404(col.items, uid=uid) serializer = CollectionItemRevisionSerializer(col_it.revisions.order_by('-id'), many=True) - return Response(serializer.data) + ret = { + 'data': serializer.data, + } + return Response(ret) @action_decorator(detail=False, methods=['POST']) def bulk_get(self, request, collection_uid=None):