mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-08-03 12:00:12 +03:00
Merge d61f541d35
into f92d8bd972
This commit is contained in:
commit
6f8db6aabe
|
@ -111,7 +111,8 @@ class GenericAPIView(views.APIView):
|
||||||
|
|
||||||
pagination_serializer_class = SerializerClass
|
pagination_serializer_class = SerializerClass
|
||||||
context = self.get_serializer_context()
|
context = self.get_serializer_context()
|
||||||
return pagination_serializer_class(instance=page, context=context)
|
return pagination_serializer_class(instance=page, context=context,
|
||||||
|
many=False)
|
||||||
|
|
||||||
def paginate_queryset(self, queryset, page_size=None):
|
def paginate_queryset(self, queryset, page_size=None):
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in New Issue
Block a user