diff --git a/rest_framework/pagination.py b/rest_framework/pagination.py index 95ba1448d..ca5c53c29 100644 --- a/rest_framework/pagination.py +++ b/rest_framework/pagination.py @@ -307,7 +307,7 @@ class PageNumberPagination(BasePagination): name=self.page_size_query_param, required=False, location='query', - #description=force_text(self.page_size_query_description) + # description=force_text(self.page_size_query_description) ) ) return fields diff --git a/rest_framework/schemas.py b/rest_framework/schemas.py index a875cc451..600698258 100644 --- a/rest_framework/schemas.py +++ b/rest_framework/schemas.py @@ -19,7 +19,6 @@ from rest_framework.request import clone_request from rest_framework.response import Response from rest_framework.settings import api_settings from rest_framework.utils import formatting -from rest_framework.utils.field_mapping import ClassLookupDict from rest_framework.utils.model_meta import _get_pk from rest_framework.views import APIView @@ -32,7 +31,7 @@ def field_to_schema(field): description = force_text(field.help_text) if field.help_text else '' if isinstance(field, serializers.ListSerializer): - child_schema = serializer_to_schema(field.child) + child_schema = field_to_schema(field.child) return coreschema.Array( items=child_schema, title=title, @@ -41,7 +40,7 @@ def field_to_schema(field): elif isinstance(field, serializers.Serializer): return coreschema.Object( properties={ - key: serializer_to_schema(value) + key: field_to_schema(value) for key, value in field.fields.items() },