Pagination not working in DRF APIView

后端 未结 4 798
甜味超标
甜味超标 2021-01-20 14:27

I am using APIView for get and post items.
I wanted to implement pagination for my API using Django Rest Framework, but it is not working.

I want

4条回答
  •  广开言路
    2021-01-20 14:55

    extend GenericAPIView instead of APIView and define pagination_class in GenericAPIView

提交回复
热议问题