1
0
mirror of https://github.com/etesync/server synced 2024-11-15 21:38:57 +00:00

Add a comment.

This commit is contained in:
Tom Hacohen 2020-04-16 16:43:21 +03:00
parent 687bf9924b
commit 19b93265d7

View File

@ -184,6 +184,7 @@ class CollectionItemViewSet(BaseViewSet):
@action_decorator(detail=True, methods=['GET'])
def revision(self, request, collection_uid=None, uid=None):
# FIXME: need pagination support
col = get_object_or_404(self.get_collection_queryset(Collection.objects), uid=collection_uid)
col_it = get_object_or_404(col.items, uid=uid)