Item revisions: don't exclude current, let the client decide.
This commit is contained in:
parent
68365f5d75
commit
2da49bb95e
@ -277,7 +277,7 @@ class CollectionItemViewSet(BaseViewSet):
|
|||||||
limit = int(request.GET.get('limit', 50))
|
limit = int(request.GET.get('limit', 50))
|
||||||
iterator = request.GET.get('iterator', None)
|
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:
|
if iterator is not None:
|
||||||
iterator = get_object_or_404(queryset, uid=iterator)
|
iterator = get_object_or_404(queryset, uid=iterator)
|
||||||
|
Loading…
Reference in New Issue
Block a user