Skip to content

Commit 50acb9b

Browse files
Ryan P KilbyCarlton Gibson
authored andcommitted
Fix warning in AutoSchema.get_serializer_fields() (encode#5451)
1 parent bf0fbd5 commit 50acb9b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

rest_framework/schemas/inspectors.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -292,8 +292,8 @@ def get_serializer_fields(self, path, method):
292292
serializer = None
293293
warnings.warn('{}.get_serializer() raised an exception during '
294294
'schema generation. Serializer fields will not be '
295-
'generated for {} {}.'.format(
296-
type(view), method, path))
295+
'generated for {} {}.'
296+
.format(view.__class__.__name__, method, path))
297297

298298
if isinstance(serializer, serializers.ListSerializer):
299299
return [

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy