Commit 1acbc29d by Tom Christie

Minor style tweak. [ci skip]

parent 46a870c0
......@@ -251,11 +251,11 @@ class SchemaGenerator(object):
if method not in ('PUT', 'PATCH', 'POST'):
return []
fields = []
if not (hasattr(view, 'get_serializer_class') and callable(getattr(view, 'get_serializer_class'))):
if not hasattr(view, 'get_serializer_class'):
return []
fields = []
serializer_class = view.get_serializer_class()
serializer = serializer_class()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment