mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-08-05 21:10:13 +03:00
Fix linter
This commit is contained in:
parent
910b5ed2cf
commit
0832a8ab22
|
@ -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
|
||||
|
|
|
@ -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()
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue
Block a user