Django Rest Framework 3.1 breaks pagination.PaginationSerializer

前端 未结 3 1625
情深已故
情深已故 2020-12-24 08:17

I just updated to Django Rest Framework 3.1 and it seems that all hell broke loose.

in my serializers.py I was having the following code:



        
3条回答
  •  醉话见心
    2020-12-24 08:52

    I realize over a year has passed since this was posted but hoping this helps others. The response to my similar question was the solution for me. I am using DRF 3.2.3.

    Django Rest Framework 3.2.3 pagination not working for generics.ListCreateAPIView

    Seeing how it was implemented gave me the solution needed to get pagination + the controls in the visible API.

    https://github.com/tomchristie/django-rest-framework/blob/master/rest_framework/mixins.py#L39

提交回复
热议问题