Hello all,
According to the documentation, nothing special is required to enable pagination when using a class inheriting from GenericAPIView. I've looked to the code of django and django rest framework and the ViewSet queryset doesn't seem ordered when using this pagination. It only adds the SQL keywords LIMIT and OFFSET to the query (using django paginator class).
What I don't understand is how PageNumberPagination handles a queryset that doesn't have a deterministic order ? Why the documentation doesn't say to add a .order_by() statement at the end of the ViewSet queryset ?
Thank you for your help,