mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-08-03 20:10:10 +03:00
Merge 659b113b84
into 9f66e8badd
This commit is contained in:
commit
d6cd128f05
|
@ -293,7 +293,7 @@ class AutoSchema(ViewInspector):
|
|||
"""
|
||||
view = self.view
|
||||
|
||||
if method not in ('PUT', 'PATCH', 'POST'):
|
||||
if method not in ('PUT', 'PATCH', 'POST', 'DELETE'):
|
||||
return []
|
||||
|
||||
if not hasattr(view, 'get_serializer'):
|
||||
|
|
Loading…
Reference in New Issue
Block a user