Since mongoengine doesn't support django annotate, the following exception occurs when trying to paginate.
'QuerySet' object has no attribute 'annotate'
in the following line:
queryset = queryset.annotate(_cursor=Tuple(*[o.lstrip('-') for o in self.ordering]))
Since mongoengine doesn't support django annotate, the following exception occurs when trying to paginate.
'QuerySet' object has no attribute 'annotate'
in the following line:queryset = queryset.annotate(_cursor=Tuple(*[o.lstrip('-') for o in self.ordering]))