1
0
mirror of https://github.com/etesync/server synced 2024-12-27 09:48:24 +00:00

Item revisions: don't exclude current, let the client decide.

This commit is contained in:
Tom Hacohen 2020-06-24 10:02:55 +03:00
parent 68365f5d75
commit 2da49bb95e

View File

@ -277,7 +277,7 @@ class CollectionItemViewSet(BaseViewSet):
limit = int(request.GET.get('limit', 50))
iterator = request.GET.get('iterator', None)
queryset = item.revisions.exclude(current=True).order_by('-id')
queryset = item.revisions.order_by('-id')
if iterator is not None:
iterator = get_object_or_404(queryset, uid=iterator)