diff --git a/rest_framework/views.py b/rest_framework/views.py index a709c2f6b..102a8479e 100644 --- a/rest_framework/views.py +++ b/rest_framework/views.py @@ -129,7 +129,12 @@ class APIView(View): """ Wrap Django's private `_allowed_methods` interface in a public property. """ - return self._allowed_methods() + allowed_methods = self._allowed_methods() + + if not api_settings.SUPPORT_PATCH and 'PATCH' in allowed_methods: + allowed_methods.remove('PATCH') + + return allowed_methods @property def default_response_headers(self):