This commit is contained in:
Gabriel-Arimatea 2017-11-17 13:02:36 +00:00 committed by GitHub
commit d6cd128f05

View File

@ -293,7 +293,7 @@ class AutoSchema(ViewInspector):
""" """
view = self.view view = self.view
if method not in ('PUT', 'PATCH', 'POST'): if method not in ('PUT', 'PATCH', 'POST', 'DELETE'):
return [] return []
if not hasattr(view, 'get_serializer'): if not hasattr(view, 'get_serializer'):