From 2d7b90e8486faf6539d3a631890e7b84315c7837 Mon Sep 17 00:00:00 2001 From: Tom Hacohen Date: Thu, 18 Jun 2020 16:14:55 +0300 Subject: [PATCH] Collection items: also show deleted items. This was a mistake. We want deleted items to show because we want to know when things have been deleted when we ask for updates. --- django_etebase/views.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/django_etebase/views.py b/django_etebase/views.py index 999dc65..0fb4d5f 100644 --- a/django_etebase/views.py +++ b/django_etebase/views.py @@ -230,8 +230,7 @@ class CollectionItemViewSet(BaseViewSet): # XXX Potentially add this for performance: .prefetch_related('revisions__chunks') queryset = type(self).queryset.filter(collection__pk=collection.pk, uid__isnull=False, - revisions__current=True, - revisions__deleted=False) + revisions__current=True) return queryset