mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-08-07 22:04:48 +03:00
Code style
This commit is contained in:
parent
5f02a0b0da
commit
14531fd727
|
@ -265,7 +265,7 @@ class SchemaGenerator(object):
|
||||||
|
|
||||||
if serializer_class is None and hasattr(view, 'get_serializer_class'):
|
if serializer_class is None and hasattr(view, 'get_serializer_class'):
|
||||||
serializer_class = view.get_serializer_class()
|
serializer_class = view.get_serializer_class()
|
||||||
|
|
||||||
if serializer_class is None:
|
if serializer_class is None:
|
||||||
return []
|
return []
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user