From 2da49bb95e8b7b29fdfec04807a895d22b6f99ff Mon Sep 17 00:00:00 2001 From: Tom Hacohen Date: Wed, 24 Jun 2020 10:02:55 +0300 Subject: [PATCH] Item revisions: don't exclude current, let the client decide. --- 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 f692ce0..bbd4e3e 100644 --- a/django_etebase/views.py +++ b/django_etebase/views.py @@ -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)