From 7842bd4d9cf06a0351f7a00a82b9e66eaced0b96 Mon Sep 17 00:00:00 2001 From: Tom Hacohen Date: Mon, 1 Jun 2020 12:45:06 +0300 Subject: [PATCH] CollectionItem list: don't return the main item. --- django_etesync/views.py | 1 + 1 file changed, 1 insertion(+) diff --git a/django_etesync/views.py b/django_etesync/views.py index ece894b..c41d0c7 100644 --- a/django_etesync/views.py +++ b/django_etesync/views.py @@ -227,6 +227,7 @@ class CollectionItemViewSet(BaseViewSet): raise Http404("Collection does not exist") # 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)